TOC PREV NEXT INDEX

ColorModel

Synopsis

efine the color model of the Datamap

ColorModel

group+OPort ColorModel {
string model; /* RGB, HSV */
string v1Label;
string v2Label;
string v3Label;
string v4Label;
func convertToRGB;
func convertFromRGB;
};


RGBcolorModel


ColorModel RGBcolorModel {
model = "RGB";
v1Label = "Alpha";
v2Label = "Red";
v3Label = "Green";
v4Label = "Blue";
func convertToRGB = "convertRGBtoRGB";
func convertfromRGB = "convertRGBtoRGB";
};


HSVcolorModel


ColorModel HSVcolorModel {
model = "HSV";
v1Label = "Alpha";
v2Label = "Hue";
v3Label = "Saturation";
v4Label = "Value";
func convertToRGB = "convertHSVtoRGB";
func convertfromRGB = "convertRGBtoHSV";
};


Description

ColorModel specifies the datamap's color model. Supported color models are HSV and RGB.

Parameters

model

The name of the color model, either "HSV" or "RGB".

v1Label

The label for the first component, "Alpha".

v2Label

The label for the second component, either "Hue" or "Red".

v3Label

The label for the third componenet, either "Saturation" or "Green".

v4Label

The label for the fourth component, either "Value" or "Blue".

Example

Libraries.Template.DMAP.Datamap

File

v/dmap.v

See also related modules

Not Applicable.

TOC PREV NEXT INDEX