Skip to content

Commit b5096ec

Browse files
committed
added initial fall animation option
updated readme increased version
1 parent 290e329 commit b5096ec

File tree

3 files changed

+109
-84
lines changed

3 files changed

+109
-84
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ This is a highly customizable animated Matrix wallpaper for Wallpaper Engine (We
3939
- Rain Customization
4040
- Matrix Speed
4141
- Trail Length
42+
- Enable/Disable Initial Fall Animation
4243
- Color Customization
4344
- Color Mode
4445
- Static Color
@@ -122,12 +123,18 @@ This is a highly customizable animated Matrix wallpaper for Wallpaper Engine (We
122123
- Download this Repo as ZIP and extract it.
123124

124125
## TODO:
125-
- Option for disabling initial fall animation
126126
- Multiple drops (customizable count)
127127
- Small Clock and Messsage
128+
- Random Character Mutations
129+
- Random Character Flip
130+
- Random drop length (not to the bottom of the screen)
128131
- [Lively](https://github.com/rocksdanister/lively) Compatible version
129132
- Mobile support
130133

131134
## Contribution
132135
- You can open Issues for any bug report or feature request.
133-
- You are free to contribute to this project by Forking this repository, Doing what you want to do, then creating a pull request.
136+
- You are free to contribute to this project by following these steps:
137+
1. Fork this Repo.
138+
2. Create a new branch for your feature/bugfix in your forked Repo.
139+
3. Commit your changes to the new branch you just made.
140+
4. Create a pull request from your branch into the `master` branch of This Repo([https://github.com/IPdotSetAF/NeoMatrix](https://github.com/IPdotSetAF/NeoMatrix)).

index.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
window.onload = function () {
2-
const version = "v4.1.0";
2+
const version = "v4.2.0";
33

44
checkForUpdates = async () => {
55
const url = 'https://api.github.com/repos/IPdotSetAF/NeoMatrix/tags';
@@ -25,6 +25,7 @@ window.onload = function () {
2525
fpsInterval: calculateFpsInterval(24),
2626
ui_rain_trailLength: 0.86,
2727
trailLength: calculateTrailLength(0.86),
28+
ui_rain_initialAnimation: true,
2829
ui_characters_charset: "4",
2930
ui_characters_customCharset: "0123456789ABCDEF",
3031
ui_font_font: "3",
@@ -95,6 +96,7 @@ window.onload = function () {
9596
options.trailLength = calculateTrailLength(options.ui_rain_trailLength);
9697
updateMask();
9798
});
99+
rainFolder.add(options, "ui_rain_initialAnimation").name("Initial Animation");
98100

99101
const colorFolder = gui.addFolder("Color");
100102
colorFolder.add(options, 'ui_color_colorMode', optionsToDict(config.general.properties.ui_color_colormode.options)).name('Color Mode');
@@ -170,6 +172,8 @@ window.onload = function () {
170172
options.trailLength = calculateTrailLength(properties.ui_rain_traillength.value);
171173
updateMask();
172174
}
175+
if (properties.ui_rain_initialanimation)
176+
options.ui_rain_initialAnimation = properties.ui_rain_initialanimation.value;
173177

174178
if (properties.ui_color_colormode)
175179
options.ui_color_colorMode = properties.ui_color_colormode.value;
@@ -377,7 +381,7 @@ window.onload = function () {
377381

378382
switch (options.ui_message_message) {
379383
case "3": {
380-
let position = [0, 5 * options.ui_message_scale];
384+
let position = [0, 5 * options.ui_message_scale];
381385
drawTextOnMask(options.ui_message_text, position[0] + options.ui_message_positionX, position[1] + options.ui_message_positionY, options.ui_message_scale);
382386
break;
383387
}
@@ -440,10 +444,16 @@ window.onload = function () {
440444
function fallAnimation() {
441445
drops = [];
442446
drop_chars = [];
443-
for (var i = 0; i < columns; i++) {
444-
drops[i] = [1, 0, 0];
445-
drop_chars[i] = ["", false];
446-
}
447+
if (options.ui_rain_initialAnimation)
448+
for (var i = 0; i < columns; i++) {
449+
drops[i] = [1, 0, 0];
450+
drop_chars[i] = ["", false];
451+
}
452+
else
453+
for (var i = 0; i < columns; i++) {
454+
drops[i] = [Math.floor(Math.random() * rows), 0, 0];
455+
drop_chars[i] = ["", false];
456+
}
447457
}
448458

449459
function startAnimating() {

0 commit comments

Comments
 (0)