Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Runtime.InteropServices;
- namespace GameStructure
- {
- public struct Color
- {
- public float Red { get; set; }
- public float Green { get; set; }
- public float Blue { get; set; }
- public float Alpha { get; set; }
- public const Color BLACK = new Color(0, 0, 0, 1);
- public const Color RED = new Color(1, 0, 0, 1);
- public const Color GREEN = new Color(0, 1, 0, 1);
- public const Color BLUE = new Color(0, 0, 1, 1);
- public const Color WHITE = new Color(1, 1, 1, 1);
- public const Color PINK = new Color(1, .75f, .793f, 1);
- public const Color PURPLE = new Color(.5f, 0, .5f, 1);
- public const Color INDIGO = new Color(.293f, 0, .508f, 1);
- public const Color TURQUOISE = new Color(0, .961f, 1, 1);
- public const Color TEAL = new Color(0, .5f, .5f, 1);
- public const Color SEAGREEN = new Color(.328f, 1, .621f, 1);
- public const Color YELLOW = new Color(1, 1, 0, 1);
- public const Color GOLD = new Color(1, .84f, 0, 1);
- public const Color ORANGE = new Color(1, .645f, 0, 1);
- public const Color MAROON = new Color(.5f, 0, 0, 1);
- public const Color DARKGRAY = new Color(.5f, .5f, .5f, 1);
- public const Color GRAY = new Color(.75f, .75f, .75f, 1);
- public Color(float r, float g, float b, float a)
- : this()
- {
- Red = r;
- Green = g;
- Blue = b;
- Alpha = a;
- }
- }
- }
Add Comment
Please, Sign In to add comment