Skip to content

Commit 5a45aad

Browse files
Update SRGB color names to reflect the renaming of the addons functions. Also add clarifcation to the sign_shader
1 parent bebaf45 commit 5a45aad

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

src/lights/lmixer/addons/addon_suite/util.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
6363
linear 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)
7373
sign: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)
111111
instead 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)
121121
instead of [RGBColor](#rgbcolor)
122122
</ExclusiveTo>
123123

src/lights/lmixer/addons/kistan_specific.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ sign_dim:add(0, sign_shader(sign_spiral({
113113
falloff_power=20}), 100000))
114114
```
115115

116+
:::note
117+
The sign's coordinates are very spaced out. While on the roof it is 1unit/pixel, on the sign
118+
it is significantly larger.
119+
:::
120+
116121
### `sign_heartbeat`
117122

118123
Make the "heartbeat shaped A" pulse.

0 commit comments

Comments
 (0)