Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
Color32 Struct Reference

RGBA color composed of 4 bytes. More...

#include <Color.h>

Static Public Member Functions

static constexpr Color32 fromHex (uint32_t v) noexcept
 Creates a color from a hexadecimal value.

Detailed Description

RGBA color composed of 4 bytes.

Since
v3.0

Member Function Documentation

◆ fromHex()

constexpr Color32 fromHex ( uint32_t v)
inlinestaticconstexprnoexcept

Creates a color from a hexadecimal value.

Supports 0xRRGGBB and 0xAARRGGBB formats. Alpha defaults to 255 when omitted.


The documentation for this struct was generated from the following file:
  • Color.h