Bentrix Docs
HomePricingDashboard

Assay reference: color

runs as written · runs with Bentrix's own convention, said in its note · refused by name, the note says what Bentrix lacks · not yet built.

Functions

color.b#

runs
color.b(color: color) → float

The blue channel

colorcolorrequired

color.from_gradient#

runs
color.from_gradient(value: float, bottom_value: float, top_value: float, bottom_color: color, top_color: color) → color

The colour between two at the value's place, channel by channel

valuefloatrequired
bottom_valuefloatrequired
top_valuefloatrequired
bottom_colorcolorrequired
top_colorcolorrequired

color.g#

runs
color.g(color: color) → float

The green channel

colorcolorrequired

color.new#

runs
color.new(color: color, transp: num) → color

The colour with a transparency from 0 (opaque) to 100

colorcolorrequired
transpnumrequired

color.r#

runs
color.r(color: color) → float

The red channel

colorcolorrequired

color.rgb#

runs
color.rgb(red: num, green: num, blue: num, transp: num?) → color

A colour from its channels

rednumrequired
greennumrequired
bluenumrequired
transpnumoptional

color.t#

runs
color.t(color: color) → float

The transparency, 0 to 100

colorcolorrequired

Constants

color.*#

runs

The named colours

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed