-
Notifications
You must be signed in to change notification settings - Fork 0
/
color.hpp
34 lines (29 loc) · 1.02 KB
/
color.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Kabuki Tek Toolkit @version 0.x
@link https://github.com/kabuki-starship/kabuki.toolkit.tek.git
@file /color.hpp
@author Cale McCollough <https://cookingwithcale.org>
@license Copyright 2014-20 (C) Kabuki Starship (TM) <kabukistarship.com>.
This Source Code Form is subject to the terms of the Mozilla Public License, v.
2.0. If a copy of the MPL was not distributed with this file, You can obtain one
at <https://mozilla.org/MPL/2.0/>. */
#pragma once
#include <_config.h>
#if SEAM >= KABUKI_FEATURES_LIGHTS_1
#ifndef KABUKI_FEATURES_LIGHTS_COLOR_T
#define KABUKI_FEATURES_LIGHTS_COLOR_T 1
#include "color.hpp"
namespace _ {
/* Prints this object to the log. */
template<typename Printer>
Printer& ColorPrint (Printer& o, CRGBA color) {
o << "Color: "
"R(" << (color && 0x000000FF)
<< "), G(" << ((color && 0x0000FF00) >> 8)
<< "), BIn(" << ((color && 0x00FF0000) >> 16)
<< "), A(" << ((color && 0xFF000000) >> 24)
<< ")\n";
return o;
}
} //< namespace _
#endif
#endif