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 |
RGB to Hex
rgb_to_hex(RGB)
rgb_to_hex(RGB)
RGB |
3 element vector of RGB values |
Hex code
Color scales based on the USDA Pomological Watercolors paintings.
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 )
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 )
palette |
Wavelength palette |
discrete |
Whether to use a discrete scale. Default is FALSE. |
alpha |
Transparency |
reverse |
Logical, Reverse the order of the colours? |
Color scales based on the USDA Pomological Watercolors paintings.
wavelength_pal(palette = "wavelength", alpha = 1, reverse = FALSE)
wavelength_pal(palette = "wavelength", alpha = 1, reverse = FALSE)
palette |
Wavelength palette |
alpha |
Transparency |
reverse |
Logical, Reverse the order of the colours? |
Wavelength to Hex
wavelength_to_hex(wavelength, gamma = 0.8)
wavelength_to_hex(wavelength, gamma = 0.8)
wavelength |
Wavelength in nm |
gamma |
Gamma |
Hex code
Wavelength to RGB
wavelength_to_rgb(wavelength, gamma = 0.8)
wavelength_to_rgb(wavelength, gamma = 0.8)
wavelength |
Wavelength in nm |
gamma |
Gamma |
RGB values