~sircmpwn/cells

cells/colors.go -rw-r--r-- 432 bytes View raw
99dbe4f3Drew DeVault Refactor chunk coords into separate func 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main

var Colors = []Color{
	{0, 0, 0},
	{170, 0, 0},
	{0, 170, 0},
	{170, 85, 0},
	{0, 0, 170},
	{170, 0, 170},
	{0, 170, 170},
	{170, 170, 170},
	{85, 85, 85},
	{255, 85, 85},
	{85, 255, 85},
	{255, 255, 85},
	{85, 85, 255},
	{255, 85, 255},
	{85, 255, 255},
	//{255, 255, 255}, // TODO: Should we have this?
}

func (c Color) EqualTo(other Color) bool {
	return c[0] == other[0] && c[1] == other[1] && c[2] == other[2]
}