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
11
namespace
xs::graphics
{
12
17
extern
const
u32
clrWhite
;
18
extern
const
u32
clrBlack
;
19
extern
const
u32
clrRed
;
20
extern
const
u32
clrGreen
;
21
extern
const
u32
clrBlue
;
22
extern
const
u32
clrYellow
;
23
extern
const
u32
clrCyan
;
24
extern
const
u32
clrMagenta
;
25
extern
const
u32
clrClear
;
27
33
u32
color
(
const
std::string &hexStr,
int
alpha = 255);
34
35
}
// namespace xs::graphics
xs::graphics
Definition
2d.hpp:6
xs::graphics::clrMagenta
const u32 clrMagenta
xs::graphics::clrCyan
const u32 clrCyan
xs::graphics::clrYellow
const u32 clrYellow
xs::graphics::clrClear
const u32 clrClear
xs::graphics::color
u32 color(const std::string &hexStr, int alpha=255)
Convert a hex color string to a u32 color value.
xs::graphics::clrBlue
const u32 clrBlue
xs::graphics::clrWhite
const u32 clrWhite
Common color constants (RGBA packed into u32 using C2D_Color32).
xs::graphics::clrRed
const u32 clrRed
xs::graphics::clrBlack
const u32 clrBlack
xs::graphics::clrGreen
const u32 clrGreen
include
graphics
colors.hpp
Generated by
1.13.2