Blender  V3.3
Functions
node_color.h File Reference

Go to the source code of this file.

Functions

float color_srgb_to_scene_linear (float c)
 
float color_scene_linear_to_srgb (float c)
 
color color_srgb_to_scene_linear (color c)
 
color color_scene_linear_to_srgb (color c)
 
color color_unpremultiply (color c, float alpha)
 
color xyY_to_xyz (float x, float y, float Y)
 
color xyz_to_rgb (float x, float y, float z)
 
color rgb_to_hsv (color rgb)
 
color hsv_to_rgb (color hsv)
 
color rgb_to_hsl (color rgb)
 
color hsl_to_rgb (color hsl)
 

Function Documentation

◆ color_scene_linear_to_srgb() [1/2]

color color_scene_linear_to_srgb ( color  c)

Definition at line 29 of file node_color.h.

References Freestyle::c, color, and color_scene_linear_to_srgb().

◆ color_scene_linear_to_srgb() [2/2]

float color_scene_linear_to_srgb ( float  c)

Definition at line 14 of file node_color.h.

References Freestyle::c, and pow().

Referenced by color_scene_linear_to_srgb().

◆ color_srgb_to_scene_linear() [1/2]

color color_srgb_to_scene_linear ( color  c)

Definition at line 22 of file node_color.h.

References Freestyle::c, color, and color_srgb_to_scene_linear().

◆ color_srgb_to_scene_linear() [2/2]

float color_srgb_to_scene_linear ( float  c)

Definition at line 6 of file node_color.h.

References Freestyle::c, and pow().

Referenced by color_srgb_to_scene_linear().

◆ color_unpremultiply()

color color_unpremultiply ( color  c,
float  alpha 
)

Definition at line 36 of file node_color.h.

References Freestyle::c.

◆ hsl_to_rgb()

color hsl_to_rgb ( color  hsl)

Definition at line 181 of file node_color.h.

References blender::math::abs(), blender::math::clamp(), color, and l.

◆ hsv_to_rgb()

color hsv_to_rgb ( color  hsv)

Definition at line 111 of file node_color.h.

References color, blender::math::floor(), usdtokens::rgb(), t, and v.

◆ rgb_to_hsl()

color rgb_to_hsl ( color  rgb)

Definition at line 152 of file node_color.h.

References color, l, max, min, and usdtokens::rgb().

◆ rgb_to_hsv()

color rgb_to_hsv ( color  rgb)

Definition at line 70 of file node_color.h.

References Freestyle::c, color, max, min, usdtokens::rgb(), and v.

◆ xyY_to_xyz()

color xyY_to_xyz ( float  x,
float  y,
float  Y 
)

Definition at line 46 of file node_color.h.

References color, x, X, y, Y, and Z.

Referenced by sky_radiance_preetham().

◆ xyz_to_rgb()

color xyz_to_rgb ( float  x,
float  y,
float  z 
)