rgb(r: number, g: number, b: number): Color

Create a color from RGB values (0 - 255).
// update the color of the sky to light blue
sky.color = rgb(0, 128, 255)

rgb(hex: string): Color

Create a color from hex string.

sincev3001.0

sky.color = rgb("#ef6360")

rgb(): Color

Same as rgb(255, 255, 255).
kaplay logo