Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | num.hexToColor 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.hexToColor

Language: MioScript
Product: MioFactory


Syntax

num.hexToColor(HTMLcolor)


Parameters

HCOLORHTMLcolorHTML color (#RRGGBB or RRGGBB).


Return value

Color.



Description

Returns the color number for an HTML color.

The returned value can be used with all the drawing functions (draw...).

See also: num.colorToHex

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.