Package 'wavecolour'

Title: HEX VALUES FOR VISIBLE WAVELENGTHS
Description: Converts wavelength in the range of 380 nm through 750 nm to hex codes.
Authors: Mikkel Roald-Arbøl
Maintainer: The package maintainer <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2024-10-28 17:14:09 UTC
Source: https://github.com/roaldarbol/wavecolour

Help Index


RGB to Hex

Description

RGB to Hex

Usage

rgb_to_hex(RGB)

Arguments

RGB

3 element vector of RGB values

Value

Hex code


Wavelength Color and Fill Scales

Description

Color scales based on the USDA Pomological Watercolors paintings.

Usage

scale_colour_wavelength(
  palette = "wavelength",
  discrete = FALSE,
  alpha = 1,
  reverse = FALSE
)

scale_color_wavelength(
  palette = "wavelength",
  discrete = FALSE,
  alpha = 1,
  reverse = FALSE
)

scale_fill_wavelength(
  palette = "wavelength",
  discrete = FALSE,
  alpha = 1,
  reverse = FALSE
)

Arguments

palette

Wavelength palette

discrete

Whether to use a discrete scale. Default is FALSE.

alpha

Transparency

reverse

Logical, Reverse the order of the colours?


Wavelength Color and Fill Scales

Description

Color scales based on the USDA Pomological Watercolors paintings.

Usage

wavelength_pal(palette = "wavelength", alpha = 1, reverse = FALSE)

Arguments

palette

Wavelength palette

alpha

Transparency

reverse

Logical, Reverse the order of the colours?


Wavelength to Hex

Description

Wavelength to Hex

Usage

wavelength_to_hex(wavelength, gamma = 0.8)

Arguments

wavelength

Wavelength in nm

gamma

Gamma

Value

Hex code


Wavelength to RGB

Description

Wavelength to RGB

Usage

wavelength_to_rgb(wavelength, gamma = 0.8)

Arguments

wavelength

Wavelength in nm

gamma

Gamma

Value

RGB values