XS Framework
A 3DS homebrew development framework.
 
Loading...
Searching...
No Matches
colors.hpp File Reference
#include <3ds.h>
#include <citro2d.h>
#include <string>
Include dependency graph for colors.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  xs
 
namespace  xs::graphics
 

Functions

u32 xs::graphics::color (const std::string &hexStr, int alpha=255)
 Convert a hex color string to a u32 color value.
 

Variables

const u32 xs::graphics::clrWhite
 Common color constants (RGBA packed into u32 using C2D_Color32).
 
const u32 xs::graphics::clrBlack
 
const u32 xs::graphics::clrRed
 
const u32 xs::graphics::clrGreen
 
const u32 xs::graphics::clrBlue
 
const u32 xs::graphics::clrYellow
 
const u32 xs::graphics::clrCyan
 
const u32 xs::graphics::clrMagenta
 
const u32 xs::graphics::clrClear