colormapgen
Version 1.0.0.0 (12.8 KB) by
Jorge Querol
Generates a colormap with linear luminance, linear hue and constant saturation.
Generates a colormap with linear luminance, linear hue and constant saturation.
RGB = colormapgen() generates "mauricio" colormap.
RGB = colormapgen(M,G1,G2,H1,H2,S) generates a colormap with M colors, with luminance or grayscale [0,1] from G1 to G2, with hue [0,360] from H1 to H2, and with saturation S [0,1].
colormapgen() plots a sample of the generated colormap.
Example: mauricio = colormapgen(64,0.2,0.9,300,-60,0.9);
Cite As
Jorge Querol (2026). colormapgen (https://github.com/jorgequerol/colormapgen), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Color and Styling in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Colorspace Transformations
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
|
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.
