Skip to content

Instantly share code, notes, and snippets.

@thomashope
Last active February 8, 2022 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomashope/1e0a2e842e70f912d0eb2eee65a8691e to your computer and use it in GitHub Desktop.
Save thomashope/1e0a2e842e70f912d0eb2eee65a8691e to your computer and use it in GitHub Desktop.
Raylib colors, ported to Unity!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Color values and names are taken from Raylib, which is released under the zlib License
// Copyright (c) 2013-2022 Ramon Santamaria (@raysan5)
// Custom raylib color palette for amazing visuals
public static class NiceColors
{
static public Color White = new Color(245f / 255f, 245f / 255f, 245f / 255f, 1f);
static public Color Lightgray = new Color(200f / 255f, 200f / 255f, 200f / 255f, 1f);
static public Color Gray = new Color(130f / 255f, 130f / 255f, 130f / 255f, 1f);
static public Color Darkgray = new Color(80f / 255f, 80f / 255f, 80f / 255f, 1f);
static public Color Yellow = new Color(253f / 255f, 249f / 255f, 0f / 255f, 1f);
static public Color Gold = new Color(255f / 255f, 203f / 255f, 0f / 255f, 1f);
static public Color Orange = new Color(255f / 255f, 161f / 255f, 0f / 255f, 1f);
static public Color Pink = new Color(255f / 255f, 109f / 255f, 194f / 255f, 1f);
static public Color Red = new Color(230f / 255f, 41f / 255f, 55f / 255f, 1f);
static public Color Maroon = new Color(190f / 255f, 33f / 255f, 55f / 255f, 1f);
static public Color Green = new Color(0f / 255f, 228f / 255f, 48f / 255f, 1f);
static public Color Lime = new Color(0f / 255f, 158f / 255f, 47f / 255f, 1f);
static public Color Darkgreen = new Color(0f / 255f, 117f / 255f, 44f / 255f, 1f);
static public Color Skyblue = new Color(102f / 255f, 191f / 255f, 255f / 255f, 1f);
static public Color Blue = new Color(0f / 255f, 121f / 255f, 241f / 255f, 1f);
static public Color Darkblue = new Color(0f / 255f, 82f / 255f, 172f / 255f, 1f);
static public Color Purple = new Color(200f / 255f, 122f / 255f, 255f / 255f, 1f);
static public Color Violet = new Color(135f / 255f, 60f / 255f, 190f / 255f, 1f);
static public Color Darkpurple = new Color(112f / 255f, 31f / 255f, 126f / 255f, 1f);
static public Color Beige = new Color(211f / 255f, 176f / 255f, 131f / 255f, 1f);
static public Color Brown = new Color(127f / 255f, 106f / 255f, 79f / 255f, 1f);
static public Color Darkbrown = new Color(76f / 255f, 63f / 255f, 47f / 255f, 1f);
}
@thomashope
Copy link
Author

Raylib colors are under Raylib's zlib licence, my changes are public domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment