SIMPOL Documentation

Chapter 22. colorpalette

colorpalette

Description

Type Tags

None

Object Value

Objects of type colorpalette have no value, and it is an error to try to get or set this value.

colorpalette.new()

Description

Prototype

colorpalette.new ( colorpalette me, string name, integer maxcolors )

Parameters

ParameterDefault valueType nameDescription
meNonecolorpalette
nameNonestring
maxcolors342integer

Properties

PropertyTypeDescription
_privatecolorpaletteprivate
addfunction
buildstrindexfunction
findcolorindexfunction
findstrindexfunction
getcolorblobfunction
getcolorrgbvalsfunction
getcolorstringfunction
getcolorvaluefunction
getcountfunction
maxcolorsinteger
namestring
typetype

Methods

add()

Description

Prototype

colorpalettevar.add ( colorpalette me, blob blobrgb, integer rgbvalue, integer red, integer green, integer blue, string strindex, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonecolorpalette
blobrgbNoneblob
rgbvalueNoneinteger
red0integer
green0integer
blue0integer
strindexNonestring
errorNoneinteger

buildstrindex()

Description

Prototype

colorpalettevar.buildstrindex ( colorpalette me )

Parameters
ParameterDefault valueType nameDescription
meNonecolorpalette

findcolorindex()

Description

Prototype

colorpalettevar.findcolorindex ( colorpalette me, blob blobrgb, integer rgbvalue, integer red, integer green, integer blue, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonecolorpalette
blobrgbNoneblob
rgbvalueNoneinteger
redNoneinteger
greenNoneinteger
blueNoneinteger
errorNoneinteger

findstrindex()

Description

Prototype

colorpalettevar.findstrindex ( colorpalette me, integer colorindex, blob blobrgb, integer rgbvalue, integer red, integer green, integer blue, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonecolorpalette
colorindexNoneinteger
blobrgbNoneblob
rgbvalueNoneinteger
redNoneinteger
greenNoneinteger
blueNoneinteger
errorNoneinteger

getcolorblob()

Description

Prototype

colorpalettevar.getcolorblob ( colorpalette me, integer colorindex, string strindex )

Parameters
ParameterDefault valueType nameDescription
meNonecolorpalette
colorindex1integer
strindexNonestring

getcolorrgbvals()

Description

Prototype

colorpalettevar.getcolorrgbvals ( colorpalette me, integer colorindex, string strindex, integer red, integer green, integer blue )

Parameters
ParameterDefault valueType nameDescription
meNonecolorpalette
colorindexNoneinteger
strindexNonestring
red0integer
green0integer
blue0integer

getcolorstring()

Description

Prototype

colorpalettevar.getcolorstring ( colorpalette me, integer colorindex, string strindex )

Parameters
ParameterDefault valueType nameDescription
meNonecolorpalette
colorindexNoneinteger
strindexNonestring

getcolorvalue()

Description

Prototype

colorpalettevar.getcolorvalue ( colorpalette me, integer colorindex, string strindex )

Parameters
ParameterDefault valueType nameDescription
meNonecolorpalette
colorindexNoneinteger
strindexNonestring

getcount()

Description

Prototype

colorpalettevar.getcount ( colorpalette me )

Parameters
ParameterDefault valueType nameDescription
meNonecolorpalette