|
Blender V4.5
|
#include <BLI_color.hh>
Inherits blender::ColorRGBA< float, eSpace::SceneLinear, Alpha >.
Public Member Functions | |
| constexpr | ColorSceneLinear4f ()=default |
| constexpr | ColorSceneLinear4f (const float *rgba) |
| constexpr | ColorSceneLinear4f (float r, float g, float b, float a) |
| ColorSceneLinearByteEncoded4b< Alpha > | encode () const |
| ColorSceneLinear4f< eAlpha::Premultiplied > | premultiply_alpha () const |
| ColorSceneLinear4f< eAlpha::Straight > | unpremultiply_alpha () const |
Public Member Functions inherited from blender::ColorRGBA< float, eSpace::SceneLinear, Alpha > | |
| constexpr | ColorRGBA ()=default |
| constexpr | ColorRGBA (const float rgba[4]) |
| constexpr | ColorRGBA (const float r, const float g, const float b, const float a) |
| operator float * () | |
| operator const float * () const | |
| uint64_t | hash () const |
Additional Inherited Members | |
Public Attributes inherited from blender::ColorRGBA< float, eSpace::SceneLinear, Alpha > | |
| float | r |
| float | g |
| float | b |
| float | a |
Definition at line 151 of file BLI_color.hh.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 155 of file BLI_color.hh.
|
inlineconstexpr |
Definition at line 160 of file BLI_color.hh.
|
inline |
Convert to its byte encoded counterpart.
Definition at line 168 of file BLI_color.hh.
References linearrgb_to_srgb_uchar4().
Referenced by blender::bke::bool_to_byte_color(), blender::bke::color_to_byte_color(), blender::ed::sculpt_paint::fill_mesh_color(), blender::bke::float2_to_byte_color(), blender::bke::float3_to_byte_color(), blender::bke::float4_to_byte_color(), blender::bke::float_to_byte_color(), fromFloat(), blender::bke::int2_to_byte_color(), blender::bke::int8_to_byte_color(), blender::bke::int_to_byte_color(), blender::bke::short2_to_byte_color(), blender::tests::TEST(), and transform_active_color_data().
|
inline |
Convert color and alpha association to premultiplied alpha.
Does nothing when color already has a premultiplied alpha.
Definition at line 180 of file BLI_color.hh.
References blender::Straight, and straight_to_premul_v4_v4().
Referenced by blender::tests::TEST(), and blender::tests::TEST().
|
inline |
Convert color and alpha association to straight alpha.
Does nothing when color has straight alpha.
Definition at line 197 of file BLI_color.hh.
References premul_to_straight_v4_v4(), and blender::Premultiplied.
Referenced by blender::tests::TEST(), blender::tests::TEST(), and blender::tests::TEST().