![]() ![]() Supported formats include "#RGB", "#RGBA", "#RRGGBB", and "#RRGGBBAA", with or without the leading "#".Ĭreates a Color from the given linear RGB hexadecimal string. Returns a new color with random RGB values and Alpha of 1.0.Ĭreates a Color from the given sRGB hexadecimal string. Linearly interpolates between two colors in HSV space by the specified progress amount and returns the resultant Color. ![]() Channel values outside the normal 0-1 range will be clamped, and some precision may be lost.Ĭolor.Lerp(Color from, Color to, number progress) Returns a hexadecimal linear RGB representation of this color, in the format "#RRGGBBAA". Channel values outside the normal 0-1 range will be clamped, and some precision may be lost. Returns a hexadecimal sRGB representation of this color, in the format "#RRGGBBAA". 0 represents no desaturation and 1 represents full desaturation. Returns the desaturated version of the Color. The Alpha (transparency) component of the Color. Constructors Constructor NameĬolor.New(number r, number g, number b, )Ĭonstructs a Color with the given values, alpha defaults to 1.0.Ĭonstructs a Color using the vector's XYZ components as the color's RGB components, alpha defaults to 1.0.Ĭonstructs a Color using the vector's XYZW components as the color's RGBA components. Color components have an effective range of, but values greater than 1 may be used. Content Creator Kit Content Creator KitĪn RGBA representation of a color.Make Your First Game Make Your First Game.Coming from other Platforms Coming from other Platforms. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |