blob: 5032b6b4e7d84cf6a1ba61ff0f74d6ccaeacfa0f [file] [log] [blame]
// Copyright 2022 The Pigweed Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.
#pragma once
#include <cinttypes>
#include "pw_color/color.h"
namespace pw::color {
const color_rgb565_t colors_pico8_rgb565[] = {
0x0000, // #000000 0 BLACK
0x194a, // #1d2b53 1 DARK_BLUE
0x792a, // #7e2553 2 DARK_PURPLE
0x042a, // #008751 3 DARK_GREEN
0xaa86, // #ab5236 4 BROWN
0x5aa9, // #5f574f 5 DARK_GRAY
0xc618, // #c2c3c7 6 LIGHT_GRAY
0xff9d, // #fff1e8 7 WHITE
0xf809, // #ff004d 8 RED
0xfd00, // #ffa300 9 ORANGE
0xff64, // #ffec27 10 YELLOW
0x0726, // #00e436 11 GREEN
0x2d7f, // #29adff 12 BLUE
0x83b3, // #83769c 13 INDIGO
0xfbb5, // #ff77a8 14 PINK
0xfe75, // #ffccaa 15 PEACH
};
const color_rgba8888_t colors_pico8_rgba8888[] = {
0xff000000, // #000000 0 BLACK
0xff532b1d, // #1d2b53 1 DARK_BLUE
0xff53257e, // #7e2553 2 DARK_PURPLE
0xff518700, // #008751 3 DARK_GREEN
0xff3652ab, // #ab5236 4 BROWN
0xff4f575f, // #5f574f 5 DARK_GRAY
0xffc7c3c2, // #c2c3c7 6 LIGHT_GRAY
0xffe8f1ff, // #fff1e8 7 WHITE
0xff4d00ff, // #ff004d 8 RED
0xff00a3ff, // #ffa300 9 ORANGE
0xff27ecff, // #ffec27 10 YELLOW
0xff36e400, // #00e436 11 GREEN
0xffffad29, // #29adff 12 BLUE
0xff9c7683, // #83769c 13 INDIGO
0xffa877ff, // #ff77a8 14 PINK
0xffaaccff, // #ffccaa 15 PEACH
};
#define COLOR_BLACK 0
#define COLOR_DARK_BLUE 1
#define COLOR_DARK_PURPLE 2
#define COLOR_DARK_GREEN 3
#define COLOR_BROWN 4
#define COLOR_DARK_GRAY 5
#define COLOR_LIGHT_GRAY 6
#define COLOR_WHITE 7
#define COLOR_RED 8
#define COLOR_ORANGE 9
#define COLOR_YELLOW 10
#define COLOR_GREEN 11
#define COLOR_BLUE 12
#define COLOR_INDIGO 13
#define COLOR_PINK 14
#define COLOR_PEACH 16
} // namespace pw::color