color(r: number, g: number, b: number): ColorComp

Sets the color of a Game Object (rgb 0-255).
// blue frog
add([
    sprite("bean"),
    color(0, 0, 255)
])

color(c: Color): ColorComp

color(rgb: Bug parsing TupleType): ColorComp

color(c: string): ColorComp

kaplay logo

3001.0.0-alpha.18

Misc