Skip to content

$font & $rgb#

$rgb#

You can use these colour methods which are documented here.

$rgb(r,g,b) // only the 3 value variant is supported
$rgb()
$hsl(h,s,l) // only the 3 value variant is supported
$hsl()
$blend(colour1,colour2,part,total)
$transition(string,colour1,colour2)

$font#

This is not a common function and is exclusive to JavaScript Panel. It takes up to 6 values.

$font(name,size,weight,style,underline,strikethrough)

If changing the font, you must the supply the name and size values. The rest are optional.

Value
size Supported values are 8 - 144.
weight Default 400, 700 is bold. Supported values are 100 - 950.
style Default 0. Use 1 for oblique or 2 for italic.
underline Default 0. Use 1 to enable.
strikethrough Default 0. Use 1 to enable.

You can use $font() with no values to reset back to default.