An enhanced sine wave generator tailored for web applications, offering advanced features for creating dynamic, visually captivating sine waves. Ideal for educational tools, music production software, and creative web projects.
- New
rotate
configuration option to rotate waves (#15) Wave.generateRandomConfig()
static method to generate random configsWave.update()
method to update wave configurations
Ease
functions now exported instead of inline- Consistent
this
return for fluent interface
- Inline gradient configuration, moved to
Wave
class - Unused
SPEED
constant
setPhase()
instance method,phase
now public
The changelog summarizes the key changes, additions, fixes, and removals in the 0.0.2 release for users upgrading from 0.0.1. I ---
- Supports multiple simultaneous waves with individual configurations
- Includes mouse/touch interactivity to control wave phase
- More configurable with options like rotation, easing functions etc.
- Split into classes for Wave and Generator, encapsulates functionality
- Includes jsdoc commenting and type definitions
- Helper utils module for shared logic
- Utilizes requestAnimationFrame for smooth animations
- Implements resize listener for fullscreen canvas
- Includes validation logic for configurations
- Error handling for constructor
- Consistent syntax and formatting
- Descriptive variable/function names
- DRY principles followed
- Unused variables cleaned
- Modern JS syntax with classes, arrow fns etc
- Includes jsdoc commenting for classes, methods, and types
- Documents parameters and return values
- Describes purpose and functionality
- Can generate API documentation