Lumino
ln::ColorTone Struct Reference

色調を定義します。 More...

#include <ColorStructs.hpp>

Public Member Functions

constexpr ColorTone () noexcept
 すべての要素を 0.0 で初期化します。
 
constexpr ColorTone (float r_, float g_, float b_, float s_) noexcept
 各要素を指定して初期化します。
 
constexpr ColorTone (const Vector4 &vec) noexcept
 指定した Vector4 をコピーして初期化します。
 
void set (float r_, float g_, float b_, float s_)
 各要素を設定します。
 
void addClamp (const ColorTone &tone)
 この色調に指定した色調を加算します。0.0~1.0 を超える場合はクランプします。
 
const Vector4toVector4 () const
 Vector4 へ変換します。
 

Public Attributes

float r
 赤成分のカラーバランス (-1.0~1.0)
 
float g
 緑成分のカラーバランス (-1.0~1.0)
 
float b
 青成分のカラーバランス (-1.0~1.0)
 
float s
 グレースケールフィルタの強さ (0.0 ~ 1.0) (saturation)
 

Static Public Attributes

static const ColorTone Zero
 (0, 0, 0, 0)
 

Detailed Description

色調を定義します。


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