colorGradient: generate custom linear colormaps

COLORGRADIENT allows you to generate a linear color gradient from color A to color B.
3.4K 次下载
更新时间 2011/5/22

查看许可证

User can generate a custom linear colormap giving 2 colors and colormap depth.

Colors are given as vectors with RGB values. The suggested input method is using intensity values for each channel (0,1), but values in the (0,255) range are also allowed.

No other colorspaces are allowed (i.e. HSV,CMYK,...).

The function outputs the colormap and an image that simplify the colormap viewing process.

Use it as an alternative to colormapeditor or to generate colormaps inside your code.

引用格式

Jose Maria Garcia-Valdecasas Bernal (2024). colorGradient: generate custom linear colormaps (https://www.mathworks.com/matlabcentral/fileexchange/31524-colorgradient-generate-custom-linear-colormaps), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Colormaps 的更多信息
标签 添加标签
致谢

启发作品: halfGuageDisplay

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0