Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | num.colorToHex SEARCH    

  Functions
num.abs
num.blue
num.char
num.colorToHex
num.compute
num.cos
num.fromHex
num.getAngle
num.getDistance
num.green
num.hexToColor
num.isInRect
num.not
num.random
num.red
num.rgb
num.sin
num.toHex

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
num.colorToHex

Language: MioScript
Product: MioFactory


Syntax

num.colorToHex(color)


Parameters

HCOLORcolorColor.


Return value

HTML color (#RRGGBB)



Description

Returns the HTML color for the specified color number.

The parameter can be set to a color obtained with a drawing function (draw...).

See also: num.hexToColor

To convert only one color channel (2 bytes): num.fromHex, num.toHex

Note: This function is defined in the library klib.k and is linked automatically.