list of colours in unity C#
// List Of Unity Colour/Color Values (Used for C# Scripting)
public class HueColour {
public enum HueColorNames{
Lime,
Green,
Aqua,
Blue,
Navy,
Purple,
Pink,
Red,
Orange,
Yellow
}
private static Hashtable hueColourValues = new Hashtable{
{ HueColorNames.Lime, new Color32( 166 , 254 , 0, 1 ) },
{ HueColorNames.Green, new Color32( 0 , 254 , 111, 1 ) },
{ HueColorNames.Aqua, new Color32( 0 , 201 , 254, 1 ) },
{ HueColorNames.Blue, new Color32( 0 , 122 , 254, 1 ) },
{ HueColorNames.Navy, new Color32( 60 , 0 , 254, 1 ) },
{ HueColorNames.Purple, new Color32( 143 , 0 , 254, 1 ) },
{ HueColorNames.Pink, new Color32( 232 , 0 , 254, 1 ) },
{ HueColorNames.Red, new Color32( 254 , 9 , 0, 1 ) },
{ HueColorNames.Orange, new Color32( 254 , 161 , 0, 1 ) },
{ HueColorNames.Yellow, new Color32( 254 , 224 , 0, 1 ) },
};
3.57
7
Color color = new Color(red,green,blue,alpha)//Alpha 0 is transparent
Thank you!
7
0
Are there any code examples left?
New code examples in category C#
-
C# 2022-03-27 22:40:23 c# movement script
-
C# 2022-03-27 22:15:17 Delete last modification on EntityFramework Core
-
C# 2022-03-27 22:15:02 file.create folder c#
-
C# 2022-03-27 19:25:04 Error inflating class android.support.constraint.ConstraintLayout
-
C# 2022-03-27 19:15:02 top down shooting in unity 2D
-
C# 2022-03-27 18:50:02 c# remove invalid directory characters
-
C# 2022-03-27 18:30:07 how to use K2 games Games parallax background
-
C# 2022-03-27 18:25:10 c# replace crlf
-
C# 2022-03-27 18:25:09 keycode for left mouse click unity