@@ -57,19 +57,19 @@ not exact, and is subject to change the internal math.
5757| colB | The ending color |
5858| lerpValue | The position along the lerp, 0=A, 1=B |
5959
60- ### ` color_to_srgb `
60+ ### ` color_from_srgb `
6161
62- Converts a [ RGBColor] ( #rgbcolor ) to be interpreted in srgb . Useful for displaying in
62+ Converts a [ RGBColor] ( #rgbcolor ) from srgb to linear . Useful for displaying in
6363linear color gammas - such as LEDs.
6464
65- ### ` hex_to_srgb `
65+ ### ` linear_from_srgb_hex `
6666
67- Same as [ color_to_srgb ] ( #color_to_srgb ) , except it takes in a hex value
67+ Same as [ color_from_srgb ] ( #color-from-srgb ) , except it takes in a hex value
6868
6969** _ Example:_ ** Make the sign laser violet
7070
7171``` lua
72- local laserViolet = hex_to_srgb (0xcc99ff )
72+ local laserViolet = linear_from_srgb_hex (0xcc99ff )
7373sign :add (0 , set (laserViolet .r , laserViolet .g , laserViolet .g ))
7474```
7575
@@ -105,9 +105,9 @@ local laserViolet = rgb_color_to_rgb_table({
105105})
106106```
107107
108- ### ` color_table_to_srgb `
108+ ### ` color_table_from_srgb `
109109
110- Same as [ color_to_srgb ] ( #color-to -srgb ) , except with [ ColorTable] ( #colortable )
110+ Same as [ color_from_srgb ] ( #color-from -srgb ) , except with [ ColorTable] ( #colortable )
111111instead of [ RGBColor] ( #rgbcolor )
112112
113113### ` color_table_lerp `
@@ -117,7 +117,7 @@ instead of [RGBColor](#rgbcolor)
117117
118118### ` color_srgb_table_hex `
119119
120- Same as [ hex_to_srgb ] ( #hex-to -srgb ) , except with [ ColorTable] ( #colortable )
120+ Same as [ linear_from_srgb_hex ] ( #linear-from -srgb-hex ) , except with [ ColorTable] ( #colortable )
121121instead of [ RGBColor] ( #rgbcolor )
122122</ExclusiveTo >
123123
0 commit comments