Skip to content

Commit

Permalink
added initial fall animation option
Browse files Browse the repository at this point in the history
updated readme
increased version
  • Loading branch information
IPdotSetAF committed Apr 10, 2024
1 parent 290e329 commit b5096ec
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 84 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This is a highly customizable animated Matrix wallpaper for Wallpaper Engine (We
- Rain Customization
- Matrix Speed
- Trail Length
- Enable/Disable Initial Fall Animation
- Color Customization
- Color Mode
- Static Color
Expand Down Expand Up @@ -122,12 +123,18 @@ This is a highly customizable animated Matrix wallpaper for Wallpaper Engine (We
- Download this Repo as ZIP and extract it.

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

## Contribution
- You can open Issues for any bug report or feature request.
- You are free to contribute to this project by Forking this repository, Doing what you want to do, then creating a pull request.
- You are free to contribute to this project by following these steps:
1. Fork this Repo.
2. Create a new branch for your feature/bugfix in your forked Repo.
3. Commit your changes to the new branch you just made.
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)).
22 changes: 16 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
window.onload = function () {
const version = "v4.1.0";
const version = "v4.2.0";

checkForUpdates = async () => {
const url = 'https://api.github.com/repos/IPdotSetAF/NeoMatrix/tags';
Expand All @@ -25,6 +25,7 @@ window.onload = function () {
fpsInterval: calculateFpsInterval(24),
ui_rain_trailLength: 0.86,
trailLength: calculateTrailLength(0.86),
ui_rain_initialAnimation: true,
ui_characters_charset: "4",
ui_characters_customCharset: "0123456789ABCDEF",
ui_font_font: "3",
Expand Down Expand Up @@ -95,6 +96,7 @@ window.onload = function () {
options.trailLength = calculateTrailLength(options.ui_rain_trailLength);
updateMask();
});
rainFolder.add(options, "ui_rain_initialAnimation").name("Initial Animation");

const colorFolder = gui.addFolder("Color");
colorFolder.add(options, 'ui_color_colorMode', optionsToDict(config.general.properties.ui_color_colormode.options)).name('Color Mode');
Expand Down Expand Up @@ -170,6 +172,8 @@ window.onload = function () {
options.trailLength = calculateTrailLength(properties.ui_rain_traillength.value);
updateMask();
}
if (properties.ui_rain_initialanimation)
options.ui_rain_initialAnimation = properties.ui_rain_initialanimation.value;

if (properties.ui_color_colormode)
options.ui_color_colorMode = properties.ui_color_colormode.value;
Expand Down Expand Up @@ -377,7 +381,7 @@ window.onload = function () {

switch (options.ui_message_message) {
case "3": {
let position = [0, 5 * options.ui_message_scale];
let position = [0, 5 * options.ui_message_scale];
drawTextOnMask(options.ui_message_text, position[0] + options.ui_message_positionX, position[1] + options.ui_message_positionY, options.ui_message_scale);
break;
}
Expand Down Expand Up @@ -440,10 +444,16 @@ window.onload = function () {
function fallAnimation() {
drops = [];
drop_chars = [];
for (var i = 0; i < columns; i++) {
drops[i] = [1, 0, 0];
drop_chars[i] = ["", false];
}
if (options.ui_rain_initialAnimation)
for (var i = 0; i < columns; i++) {
drops[i] = [1, 0, 0];
drop_chars[i] = ["", false];
}
else
for (var i = 0; i < columns; i++) {
drops[i] = [Math.floor(Math.random() * rows), 0, 0];
drop_chars[i] = ["", false];
}
}

function startAnimating() {
Expand Down
Loading

0 comments on commit b5096ec

Please sign in to comment.