Using a bigger Range of colours from code in Unity
Create a new C# script in your project called CSSColors.cs and then copy and paste the code below into it.
You should then be able to use the colour names specified anywhere in your project.
public class CSSColors
{
// NOTE: The follwing color names come from the CSS3 specification,
// Section 4.3 Extended Color Keywords
// http://www.w3.org/TR/css3-color/#svg-color
public static readonly Color AliceBlue = new Color32(240,248,255,255);
public static readonly Color AntiqueWhite = new Color32(250,235,215,255);
public static readonly Color Aqua= new Color32(0,255,255,255);
public static
- Read more about Using a bigger Range of colours from code in Unity
- Log in or register to post comments