cm=VLcol
cm : | Colormap |
Set the colormap to basic colors:
colormap VLcol
The function VLcol
generates a colormap that is similar to the basic colors used in MATLAB. It is part of the SG-Library and was created by Tim Lueth. The function does not take any input parameters and returns a single output:
The colormap is defined as follows:
[0.2 0.2 0.2]
: A dark gray color.[0 0 1]
: Blue.[0 1 0]
: Green.[0 1 1]
: Cyan.[1 0 0]
: Red.[1 0 1]
: Magenta.[1 1 0]
: Yellow.[185/255 185/255 224/255]
: A light purple color, similar to a color used in CATIA software.The function is straightforward and does not include any conditional logic or parameters. It simply returns the predefined colormap matrix.
Algorithm explaination created using ChatGPT on 2025-08-18 22:31. (Please note: No guarantee for the correctness of this explanation)