colrmap

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - User interface
Introduced first in SolidGeometry 1.0, Creation date: 1998-12-16, Last change: 2025-08-18

generates a colormap using a RGB profile

Description

COLRMAP (LEN,R,G,B) with LEN as scalar and R,G,B as M-by-2 matrix
COLRMAP generates an RGB colormap of length LEN and interpolates
the individual R G B color intensities between the tabel positions
R,G,B = [position1, intensity1; position1, intensity1; .......]
COLRMAP (100,[1,0 ; 100,1], [1,0 ; 100,1], [1,0 ; 100,1]) is the same
as gray (100);

Example Illustration

 missing image of colrmap(len,red,green,blue)

Syntax

cmap=colrmap(len,red,green,blue)

Input Parameter

len:
red:
green:
blue:

Output Parameter

cmap:




Copyright 1998-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21