UNPKG

rain-char

Version:

A lightweight JavaScript library that creates a 'Matrix-style' falling character effect with depth. Customize the font, colors, character range, and animation speed for dynamic visual effects on your webpage.

74 lines (45 loc) 1.71 kB
# Change Log All notable changes to this project will be documented in this file. <!-- ## [Unreleased] ### Added ### Fixed ### Changed ### Removed --> ## [1.5.0] ### Added - `preRender` option to pre render the character that could potentially improve the performance at the cost of slower startup ## [1.4.0] - 2024-08-25 ### Added - `trailMultiplier` option to control the length of the trail. - `charSpacing` option to control the gap between characters. - `charChangeFreq` option to control the frequency of character change. (chance of changing characters in each frame between 0% and 100%) ### Changed - Changed the default colors to black and limegreen ## [1.3.0] - 2024-08-22 ### Added - Getters and setters for `font`, `charSize`, `charRange`, `bg`, `fg`, `fps`, and `densityFactor` - The ability to smoothly change the values above without restarting the effect - Check the demo for a demonstration - Ability to use multiple character ranges for `charRange` as a list of ranges, for example, [[0x3041, 0x3096], [0x30a1, 0x30f6]] ### Changed - Character ranges are created during initialization for better performance. ## [1.2.0] - 2024-08-21 ### Fixed - Increased the new particle vertical offset to fix batch falling on first iterations. - Most obvious on a big canvas with small character size ## [1.1.0] - 2024-08-21 ### Added - Docstring for `start`, `pause`, and `stop` methods ### Changed - Improved the class documentation - Modularized Initialization - Refined Particle Management - Grouped Canvas Operations - Simplified Resize Logic ## [1.0.0] - 2024-08-21 First release