File Exchange

image thumbnail

colorGradient: generate custom linear colormaps

COLORGRADIENT allows you to generate a linear color gradient from color A to color B.



View License

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.

Comments and Ratings (5)

Kota Matsuo

Gautam Dey


Suchit (view profile)

Pio Nonus

JR King

MATLAB Release
MATLAB 7.10 (R2010a)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video