You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Berry_Addressable-LED.md
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -152,10 +152,10 @@ set_bri|`set_bri(bri:0..100) -> nil` sets the brightness for the color, defaults
152
152
153
153
Palette|Description
154
154
:---|:---
155
-
`animate.PALETTE_STANDARD_TAG`|Standard palette cycling through 7 colors<br><divstyle='width:300px;height:30px;background:linear-gradient(toright,#FF00000.0%,#FFA50014.3%,#FFFF0028.6%,#00EE0042.9%,#0000FF57.1%,#4B00FF71.4%,#FF82FF85.7%,#FF0000100.0%);'></div>
156
-
`animate.PALETTE_STANDARD_VAL`|Same palette described as values<br>
157
-
`animate.PALETTE_RAINBOW_WHITE`|Cycle through 8 colors (including white) and keep colors steady<br>
158
-
`animate.PALETTE_SATURATED_TAG`|Cycle through 7 saturated colors<br>
155
+
`animate.PALETTE_STANDARD_TAG`|Standard palette cycling through 7 colors<br><divstyle='width:300px;height:30px;background:linear-gradient(toright,#FF00000.0%,#FFA50014.3%,#FFFF0028.6%,#00FF0042.9%,#0000FF57.1%,#FF00FF71.4%,#FFFFFF85.7%,#FF0000100.0%);'></div>
156
+
`animate.PALETTE_STANDARD_VAL`|Same palette described as values<br><divstyle='width:300px;height:30px;background:linear-gradient(toright,#FF00000.0%,#FFA50014.1%,#FFFF0028.6%,#00FF0043.1%,#0000FF57.3%,#FF00FF71.8%,#FFFFFF85.9%,#FF0000100.0%);'></div>
157
+
`animate.PALETTE_RAINBOW_WHITE`|Cycle through 8 colors (including white) and keep colors steady<br><divstyle='width:300px;height:30px;background:linear-gradient(toright,#FF00000.0%,#FF00008.9%,#FFA50014.3%,#FFA50023.2%,#FFFF0028.6%,#FFFF0037.5%,#00FF0042.9%,#00FF0051.8%,#0000FF57.1%,#0000FF66.1%,#FF00FF71.4%,#FF00FF80.4%,#FFFFFF85.7%,#FFFFFF94.6%,#FF0000100.0%);'></div>
158
+
`animate.PALETTE_SATURATED_TAG`|Cycle through 7 saturated colors<br><divstyle='width:300px;height:30px;background:linear-gradient(toright,#FF00000.0%,#FFA50014.3%,#FFFF0028.6%,#00FF0042.9%,#0000FF57.1%,#FF00FF71.4%,#FFFFFF85.7%,#FF0000100.0%);'></div>
159
159
160
160
Palettes can be specified as a `bytes()` object of via `comptr` if they are solidified in Flash.
161
161
@@ -171,7 +171,7 @@ This format makes it easier to adjust the transition time between colors
171
171
172
172
Example:
173
173
174
-
```
174
+
```berry
175
175
var PALETTE_SATURATED_TAG = bytes(
176
176
"40" "FF0000" # red
177
177
"40" "FFA500" # orange
@@ -195,7 +195,7 @@ This format is useful to use palettes that represent a color range.
195
195
196
196
Example:
197
197
198
-
```
198
+
```berry
199
199
var PALETTE_STANDARD_VAL = bytes(
200
200
"00" "FF0000" # red
201
201
"24" "FFA500" # orange
@@ -208,6 +208,14 @@ var PALETTE_STANDARD_VAL = bytes(
208
208
)
209
209
```
210
210
211
+
Note: you can generate a CSS linear-gradient of a palette with the following code:
0 commit comments