Lumino
ln::ColorI Struct Reference

各要素を 0~255 の範囲で表す RGBA カラーを定義します。 More...

#include <ColorStructs.hpp>

Public Member Functions

 ColorI ()
 すべての要素を 0 で初期化します。
 
 ColorI (uint8_t r_, uint8_t g_, uint8_t b_, uint8_t a_=255)
 各要素を指定して初期化します。
 
void set (uint8_t r_, uint8_t g_, uint8_t b_, uint8_t a_=255)
 各要素を設定します。
 

Public Attributes

uint8_t r
 赤成分 (0~255)
 
uint8_t g
 緑成分 (0~255)
 
uint8_t b
 青成分 (0~255)
 
uint8_t a
 アルファ成分 (0~255)
 

Static Public Attributes

static const ColorI Zero
 (0, 0, 0, 0)
 
static const ColorI White
 (255, 255, 255, 255)
 

Detailed Description

各要素を 0~255 の範囲で表す RGBA カラーを定義します。


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