/** * Utils for the graphics of the 3DS. */ #pragma once #include <3ds.h> typedef u8 t_color[3]; /// @brief Create a t_color from each color value. /// /// @param dest The color to set. /// @param r Red value from 0 to 255. /// @param g Green value from 0 to 255. /// @param b Blue value from 0 to 255. void rgb_set(t_color &dest, u8 r, u8 g, u8 b); /// @brief Create a t_color from a number 0xRRGGBB. /// /// @param dest The color to set. /// @param value Value to set the color to, in the form: 0xRRGGBB. void rgb_set(t_color &dest, u32 rgb);