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) → floatThe blue channel
color | color | required |
color.from_gradient#
runs
color.from_gradient(value: float, bottom_value: float, top_value: float, bottom_color: color, top_color: color) → colorThe colour between two at the value's place, channel by channel
value | float | required |
bottom_value | float | required |
top_value | float | required |
bottom_color | color | required |
top_color | color | required |
color.g#
runs
color.g(color: color) → floatThe green channel
color | color | required |
color.new#
runs
color.new(color: color, transp: num) → colorThe colour with a transparency from 0 (opaque) to 100
color | color | required |
transp | num | required |
color.r#
runs
color.r(color: color) → floatThe red channel
color | color | required |
color.rgb#
runs
color.rgb(red: num, green: num, blue: num, transp: num?) → colorA colour from its channels
red | num | required |
green | num | required |
blue | num | required |
transp | num | optional |
color.t#
runs
color.t(color: color) → floatThe transparency, 0 to 100
color | color | required |
Constants
color.*#
runs
The named colours