Blender V4.3
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 34 of file node_color.h.

References 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 17 of file node_color.h.

References 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 27 of file node_color.h.

References 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 7 of file node_color.h.

References pow().

Referenced by color_srgb_to_scene_linear().

◆ color_unpremultiply()

color color_unpremultiply ( color c,
float alpha )

Definition at line 41 of file node_color.h.

◆ hsl_to_rgb()

color hsl_to_rgb ( color hsl)

Definition at line 202 of file node_color.h.

References abs(), clamp(), color, and l.

◆ hsv_to_rgb()

color hsv_to_rgb ( color hsv)

Definition at line 125 of file node_color.h.

References color, floor(), and v.

◆ rgb_to_hsl()

color rgb_to_hsl ( color rgb)

Definition at line 173 of file node_color.h.

References color, l, max, and min.

◆ rgb_to_hsv()

color rgb_to_hsv ( color rgb)

Definition at line 80 of file node_color.h.

References color, max, min, and v.

◆ xyY_to_xyz()

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

Definition at line 52 of file node_color.h.

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

Referenced by osl_prepend_color_from(), osl_transformc(), and sky_radiance_preetham().

◆ xyz_to_rgb()