Function rgb(r: number, g: number, b: number): Color Create a color from RGB values (0 - 255).param r- The red value.param g- The green value.param b- The blue value. // update the color of the sky to light blue sky.color = rgb(0, 128, 255) returns The color.since v2000.0group Math
Function rgb(hex: string): Color Create a color from hex string.param hex- The hex string. sky.color = rgb("#ef6360") returns The color.since v2000.0group Math
Function rgb(cssColor: CSSColorKeywords): Color Create a color from CSS keyword.param cssColor- The CSS keyword. sea.color = rgb("slateblue"); returns The color.since v3001.0.10experimental This feature is in experimental phase, it will be fully released in v3001.1.0