Skip to content

Commit 739f7d1

Browse files
committed
added RGB Cycle color mode
updated readme to reflect changes
1 parent 443cc09 commit 739f7d1

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
This is a highly customizable animated Matrix wallpaper for Wallpaper Engine
66

77
## Features
8-
- Static, Vertical and Horizontal Rainbow Color options
9-
- Configurable Rainbow animation
10-
- Matrix Speed customization
11-
- Trail Length customization
8+
- Customizable Color Mode:
9+
- Static Color
10+
- RGB Cycle
11+
- Vertical Rainbow
12+
- Horizontal Rainbow
13+
- Configurable Animation Speed (Rainbow and RGB Cycle)
14+
- Matrix Speed Customization
15+
- Trail Length Customization
1216
- Togglable First Character Highlighting
13-
- Font Size customization
1417
- Character Set Choice
1518
- English Letters
1619
- English Letters + Numbers
@@ -20,6 +23,7 @@ This is a highly customizable animated Matrix wallpaper for Wallpaper Engine
2023
- Hex
2124
- Morse code
2225
- CUSTOM
26+
- Font Size Customization
2327
- Font Customization:
2428
- 3 Presets
2529
- CUSTOM
@@ -35,7 +39,6 @@ This is a highly customizable animated Matrix wallpaper for Wallpaper Engine
3539
- Download this Repo as Zip and extract it.
3640

3741
## TODO:
38-
- Static Color Animations
3942
- Clock support
4043
- Big Message support
4144
- Mobile support

index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,21 @@ window.onload = function () {
182182
var hue, offset = Math.floor(color_animation_speed * then);
183183

184184
switch (color_mode) {
185-
//Horizontal
185+
//RGb cycle
186186
case "1": {
187-
hue = (i + offset) * column_hue;
187+
hue = offset * row_hue;
188188
break;
189189
}
190190
//Vertical
191191
case "2": {
192192
hue = (j + offset) * row_hue;
193193
break;
194194
}
195+
//Horizontal
196+
case "3": {
197+
hue = (i + offset) * column_hue;
198+
break;
199+
}
195200
//Static
196201
default: {
197202
return "rgb( " + color + " )";

project.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"charset" :
99
{
10-
"index" : 7,
10+
"index" : 6,
1111
"options" :
1212
[
1313
{
@@ -43,7 +43,7 @@
4343
"value" : "7"
4444
}
4545
],
46-
"order" : 107,
46+
"order" : 106,
4747
"text" : "Char set",
4848
"type" : "combo",
4949
"value" : "3"
@@ -80,12 +80,16 @@
8080
"value" : "0"
8181
},
8282
{
83-
"label" : "Horizontal Rainbow",
83+
"label" : "RGB Cycle",
8484
"value" : "1"
8585
},
8686
{
8787
"label" : "Vertical Rainbow",
8888
"value" : "2"
89+
},
90+
{
91+
"label" : "Horizontal Rainbow",
92+
"value" : "3"
8993
}
9094
],
9195
"order" : 100,
@@ -96,8 +100,8 @@
96100
"customcharset" :
97101
{
98102
"condition" : "charset.value == 0",
99-
"index" : 8,
100-
"order" : 108,
103+
"index" : 7,
104+
"order" : 107,
101105
"text" : "Custom Char set",
102106
"type" : "textinput",
103107
"value" : "0123456789ABCDEF"
@@ -141,10 +145,10 @@
141145
"fontsize" :
142146
{
143147
"fraction" : false,
144-
"index" : 6,
148+
"index" : 8,
145149
"max" : 30,
146150
"min" : 5,
147-
"order" : 106,
151+
"order" : 108,
148152
"text" : "Font size",
149153
"type" : "slider",
150154
"value" : 15

0 commit comments

Comments
 (0)