Skip to content

Instantly share code, notes, and snippets.

@DMax-YT
Last active December 7, 2021 19:10
Show Gist options
  • Save DMax-YT/c6f6d8f84b7751582f82f3454807c555 to your computer and use it in GitHub Desktop.
Save DMax-YT/c6f6d8f84b7751582f82f3454807c555 to your computer and use it in GitHub Desktop.

Snow in discord

Original effect: https://codepen.io/netgfx/pen/rbGkA

How does it look (click the image):

Click here to watch demo

How to enable it?

!!!WARNING!!!

You will need to make these actions every time you reload discord!

  1. Run your Discord.
  2. Press Ctrl+Shift+I
  3. Go to "Console" tab
  4. Follow this link, copy all it's content and paste in console (don't forget about pressing enter).
  5. Type next code in console window.snow = new SnowCanvas().start();
  6. See the falling snow in your discord

How to disable it?

You can stop snowfalling at any moment by typing window.snow.stop() in console and start with window.snow.start()

If you no any longer need it, just type window.snow.destroy()

Change snow settings

  • Amount of particles
window.snow.setAmount(1000);
  • Size of particle
window.snow.setMaxSize(10).setMinSize(1);
  • Speed of falling particles
window.snow.setMaxSpeed(140).setMinSpeed(10);
  • Oscilation speed for x movement
window.snow.setMaxSwing(10).setMinSwing(1);
  • Distance for x movement
window.snow.setMaxAmp(100).setMinAmp(50);

All above transformations can be combined

window.snow.setAmount(1000).setMaxSize(3).setMaxSpeed(150);

AFTER CHANGING SETTINGS, RESIZE YOUR WINDOW

Also you can start snow with your settings

window.snow = new SnowCanvas().setAmount(1000).start();

For devs

Source of SnowCanvas: https://gist.github.com/DMax-YT/1512b7ab5c9b98a4969b0b2b1d5f4a95

You can use it in your plugins for Powercord or BetterDiscord but don't forget about author of original script and me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment