Skip to content

feat: Implement rainbow color cycling in animations - #27

Open
curtisahuang wants to merge 1 commit into
masterfrom
cosine/make-things-rainbow
Open

feat: Implement rainbow color cycling in animations#27
curtisahuang wants to merge 1 commit into
masterfrom
cosine/make-things-rainbow

Conversation

@curtisahuang

Copy link
Copy Markdown
Collaborator

This pull request introduces rainbow color cycling to the animations.

  • The utils.js file has been updated to include hslToRgb and rainbowColor functions. The rainbowColor function generates RGB colors based on a hue offset, time, and speed, allowing for dynamic color transitions.
  • The createMouseCloudProject, createSinewaveProject, and createSpinningParticlesProject now utilize the rainbowColor function to color their respective elements instead of fixed color palettes.
  • Removed unused color-related variables and logic from these animation files.
  • Added a colorSpeed control to the mouse cloud and sinewave animations to allow users to adjust the speed of the rainbow color cycling.

Added `rainbowColor` helper function and integrated it into the sinewave, spinning particles, and mouse cloud animations. This allows each animation element to dynamically cycle through the color spectrum. Removed static color palettes and controls in favor of live rainbow color generation with adjustable speed and hue offsets.

Co-Authored-By: Cosine CLI (lumen-outpost) <agent@cosine.sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant