Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
Flint::Color Struct Reference

RGBA color with 8-bit unsigned components. More...

#include <flint/graphics/types/color.h>

+ Collaboration diagram for Flint::Color:

Public Member Functions

constexpr Color (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
 Construct a color from explicit RGBA components.
 
constexpr bool operator== (const Color &other) const
 

Public Attributes

unsigned char r
 
unsigned char g
 
unsigned char b
 
unsigned char a
 

Detailed Description

RGBA color with 8-bit unsigned components.

Component values range from 0 (none) to 255 (full). Alpha defaults to fully opaque (255) when not specified.

Definition at line 13 of file color.h.


The documentation for this struct was generated from the following file: