XS Framework
A 3DS homebrew development framework.
 
Loading...
Searching...
No Matches
colors.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include <3ds.h>
8#include <citro2d.h>
9#include <string>
10
11namespace xs::graphics {
12
17extern const u32 clrWhite;
18extern const u32 clrBlack;
19extern const u32 clrRed;
20extern const u32 clrGreen;
21extern const u32 clrBlue;
22extern const u32 clrYellow;
23extern const u32 clrCyan;
24extern const u32 clrMagenta;
25extern const u32 clrClear;
27
33u32 color(const std::string &hexStr, int alpha = 255);
34
35} // namespace xs::graphics
Definition 2d.hpp:6
const u32 clrMagenta
const u32 clrCyan
const u32 clrYellow
const u32 clrClear
u32 color(const std::string &hexStr, int alpha=255)
Convert a hex color string to a u32 color value.
const u32 clrBlue
const u32 clrWhite
Common color constants (RGBA packed into u32 using C2D_Color32).
const u32 clrRed
const u32 clrBlack
const u32 clrGreen