Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisBRN/Lots_Of_Colors
3000+ RGB colors (2k pantone) in code ready formats for SFML (C++), Game Maker (gml), Godot (tscn) & Unity (C#)
https://github.com/chrisBRN/Lots_Of_Colors
color colour cpp csharp excel game-maker gml godot pantone sfml unity
Last synced: about 1 month ago
JSON representation
3000+ RGB colors (2k pantone) in code ready formats for SFML (C++), Game Maker (gml), Godot (tscn) & Unity (C#)
- Host: GitHub
- URL: https://github.com/chrisBRN/Lots_Of_Colors
- Owner: chrisBRN
- Created: 2018-09-03T11:23:08.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-08-13T19:53:25.000Z (5 months ago)
- Last Synced: 2024-08-13T22:59:47.649Z (5 months ago)
- Topics: color, colour, cpp, csharp, excel, game-maker, gml, godot, pantone, sfml, unity
- Language: C
- Homepage:
- Size: 3.94 MB
- Stars: 17
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lots of Colors
3000+ RGB colors in code ready formats for SFML (C++), SDL (C++), Game Maker (gml), Godot (tscn) & Unity (C#)
Includes hex values for all colors and names where available (Hex is also supplied code ready for SFML).
The color pool is largely taken from Pantone and the palettes are largely aimed at fixed color game development. (e.g. Commodore 64, NES).
I'd suggest using this as a reference rather than including it in full as it's unlikely you'll use 3k colors and it will add needless variables.
## Palettes Included
Sourced via: https://lospec.com/
Color Graphics Adapter
Commodore 64
MSX / Microsoft 1983
Macintosh II
ZX Spectrum
Nintendo Entertainment System / NESSourced via http://www.smspower.org/Development/Palette
SG-1000
Pantone color names sourced via: https://github.com/Margaret2/pantone-colors
Pantone PMS (Pantone Matching System) colors sourced via: http://www.excaliburcreations.com/pantone.htmlPantone colors names are copyright Pantone.
## Code Examples
```
SFML rgb: static const sf::Color cga_02(245,85,85); // FF555555
SFML hex: static const sf::Color cga_02(0x00555555); // (245,85,85)
SDL: SDL_Color cga_02 = {245, 85, 85};
Game Maker: col_cga_02 = make_color_rgb(245,85,85);
Unity: public Color cga_02 = Color(0.961F, 0.333F, 0.333F);
Godot: var col_cga_02 Color(0.961, 0.333, 0.333)
css: --cga_02: #FF555555
```## Notes
Hex values notes i.e. // FF555555 are available in the included excel file.
For 0-1 RGB rounding was done using the excel function round(), which rounds to the nearest integer, if you are using a language that always rounds down this may cause slight variations.