An interactive 3D flower field animation built with HTML5 Canvas and vanilla JavaScript. Features a rotating perspective view with colorful flowers moving through 3D space in a dark, dreamy environment.
requestAnimationFrame for optimal performanceSimply open index.html in a web browser. The animation starts automatically and fills the entire viewport.
You can adjust various parameters in constants.js:
NUM_FLOWERS: Number of flowers (default: 300)MIN_FLOWER_SIZE / MAX_FLOWER_SIZE: Flower size rangeMIN_SPEED / MAX_SPEED: Flower movement speed rangePERSPECTIVE_FACTOR: Controls depth effect intensityROTATION_SPEED: How fast the flower field rotatesBG_COLOR: Background color (dark theme)SIZE_DISTRIBUTION: Weighted distribution for flower sizes (small, medium, large)index.html: Main HTML structureindex.js: Animation controllerrenderer.js: Canvas rendering logicflower.js: Flower generation and propertiesconstants.js: Configuration parametersstyles.css: Basic styling for full-screen display