Little Game for Ludum Dare 26 (minimalism) Give it a go here |
Chris Braithwaite
independent game dev
4/28/13
Hold
4/11/13
Mac Color Picker Crayon Box Colors for Unity
Basically I just wanted a way to get to the colors from the mac color picker crayon box through code in one place. I've been manually adding all of these for a while, think it is complete! I have all these in a Static Color class. Hope this is useful for someone out there.
#region Mac Color Picker Crayons
public static Color cayanne = new Color (128 / 255f, 0 / 255f, 0 / 255f, 1);
public static Color asparagus = new Color (128 / 255f, 128 / 255f, 0 / 255f, 1);
public static Color clover = new Color (0 / 255f, 128 / 255f, 0 / 255f, 1);
public static Color teal = new Color (0 / 255f, 128 / 255f, 128 / 255f, 1);
//
public static Color midnight = new Color (0 / 255f, 0 / 255f, 128 / 255f, 1);
public static Color plum = new Color (128 / 255f, 0 / 255f, 128 / 255f, 1);
public static Color tin = new Color (127 / 255f, 127 / 255f, 127 / 255f, 1);
public static Color nickel = new Color (128 / 255f, 128 / 255f, 128 / 255f, 1);
//
public static Color mocha = new Color (128 / 255f, 64 / 255f, 0 / 255f, 1);
public static Color fern = new Color (64 / 255f, 128 / 255f, 0 / 255f, 1);
public static Color moss = new Color (0 / 255f, 128 / 255f, 64 / 255f, 1);
public static Color ocean = new Color (0 / 255f, 64 / 255f, 128 / 255f, 1);
//
public static Color eggplant = new Color (64 / 255f, 0 / 255f, 128 / 255f, 1);
public static Color maroon = new Color (128 / 255f, 0 / 255f, 64 / 255f, 1);
public static Color steel = new Color (102 / 255f, 102 / 255f, 102 / 255f, 1);
public static Color aluminum = new Color (153 / 255f, 153 / 255f, 153 / 255f, 1);
//
public static Color maraschino = new Color (255 / 255f, 0 / 255f, 0 / 255f, 1);
public static Color lemon = new Color (255 / 255f, 255 / 255f, 0 / 255f, 1);
public static Color spring = new Color (0 / 255f, 255 / 255f, 0 / 255f, 1);
public static Color turquoise = new Color (0 / 255f, 255 / 255f, 255 / 255f, 1);
//
public static Color blueberry = new Color (0 / 255f, 0 / 255f, 255 / 255f, 1);
public static Color magenta = new Color (255 / 255f, 0 / 255f, 255 / 255f, 1);
public static Color iron = new Color (76 / 255f, 76 / 255f, 76 / 255f, 1);
public static Color magnesium = new Color (179 / 255f, 179 / 255f, 179 / 255f, 1);
//
public static Color tangerine = new Color (255 / 255f, 128 / 255f, 0 / 255f, 1);
public static Color lime = new Color (128 / 255f, 255 / 255f, 0 / 255f, 1);
public static Color seafoam = new Color (0 / 255f, 255 / 255f, 128 / 255f, 1);
public static Color aqua = new Color (0 / 255f, 128 / 255f, 255 / 255f, 1);
//
public static Color grape = new Color (128 / 255f, 0 / 255f, 255 / 255f, 1);
public static Color strawberry = new Color (255 / 255f, 0 / 255f, 128 / 255f, 1);
public static Color tungsten = new Color (51 / 255f, 51 / 255f, 51 / 255f, 1);
public static Color silver = new Color (204 / 255f, 204 / 255f, 204 / 255f, 1);
//
public static Color salmon = new Color (255 / 255f, 255 / 255f, 255 / 255f, 1);
public static Color banana = new Color (255 / 255f, 255 / 255f, 102 / 255f, 1);
public static Color lora = new Color (102 / 255f, 225 / 255f, 102 / 255f, 1);
public static Color ice = new Color (102 / 255f, 255 / 255f, 255 / 255f, 1);
//
public static Color orchid = new Color (102 / 255f, 102 / 255f, 255 / 255f, 1);
public static Color bubbleGum = new Color (255 / 255f, 102 / 255f, 255 / 255f, 1);
public static Color lead = new Color (25 / 255f, 25 / 255f, 25 / 255f, 1);
public static Color mercury = new Color (230 / 255f, 230 / 255f, 230 / 255f, 1);
//
public static Color cantelope = new Color (255 / 255f, 204 / 255f, 102 / 255f, 1);
public static Color honeydew = new Color (204 / 255f, 255 / 255f, 102 / 255f, 1);
public static Color spindrift = new Color (102 / 255f, 255 / 255f, 204 / 255f, 1);
public static Color sky = new Color (102 / 255f, 204 / 255f, 255 / 255f, 1);
//
public static Color lavender = new Color (204 / 255f, 102 / 255f, 255 / 255f, 1);
public static Color carnation = new Color (255 / 255f, 111 / 255f, 207 / 255f, 1);
public static Color licorice = new Color (0 / 255f, 0 / 255f, 0 / 255f, 1);
public static Color snow = new Color (255 / 255f, 0 / 255f, 128 / 255f, 1);
#endregion
4/5/13
Subscribe to:
Posts (Atom)