I have built the Funhouse Mirror Studio, a web application featuring real-time WebGL distortions, interactive morphing, ornate mirror frame styling, audio reactivity, and a photo booth suite.
Key Features & Capabilities:
-
16 Real-Time WebGL Distortion Modes:
- Classic Warp: Horizontal Stretch, Tall Stretch, Slim Squeeze, Squish Squeeze.
- Optics & Waves: Sphere Bulge, Concave Pinch, Spiral Swirl, Ocean Wave, Water Drop Ripple, Fisheye Dome.
- Wild & Animated: Melting Popsicle (gravity liquid dripping), Cyber Scanline Glitch (chromatic RGB split), Alien Big Brain (forehead bulge + chin squeeze), Jelly Wobble.
- Artistic & Special: Kaleidoscope (3-12 segment mirror symmetry), Psychedelic Heatmap Thermal.
-
Real-Time Animated Morphing & Interactive Focal Control:
- Continuous 60 FPS WebGL rendering with adjustable Intensity, Frequency, and Morph Speed.
- Auto-Morph Mode: Oscillating sine wave sweeps that automatically morph parameters over time.
- Interactive Focus Gizmo: Click or drag directly on the mirror surface to relocate the distortion center point in real-time with cartoon boing sound effects.
- Microphone Audio Beat Sensitivity: Turn on live audio reactivity to make sound or music deform the mirror surface dynamically!
-
7 Ornate Mirror Frame Styles:
- Carnival Marquee Gold: Complete with animated blinking arcade/incandescent bulbs around the perimeter.
- Sci-Fi Cyber Neon: Glowing neon tubes with pulsing cyan corner lasers.
- Baroque Regal Gold: Filigree museum frame molding.
- Rustic Carnival Wood: Weathered timber texture with brass corner brackets.
- Candy Cane Funhouse: Peppermint red & white candy stripes.
- Disco Mirror Ball: Reflective 70s mirror tile border.
- Modern Ultra Chrome: Minimalist metallic bezel with drop shadow.
-
Multiple Media Sources:
- Live Webcam: Real-time webcam feed with horizontal flip mirror option.
- Sample Avatars: Vector faces (Carnival Clown, Mona Lisa, Dog, Cat, Alien Visitor, Party Guy).
- Custom Photo Upload: Upload any image file directly from your computer.
- Procedural Test Patterns: 70s Groovy Swirl, Checkerboard, Target, and Floating Emoji Field.
-
Hall of Mirrors Quad View:
- Split-screen Hall of Mirrors mode rendering 4 different funhouse mirrors simultaneously in real time. Click any mirror to immediately select it as your primary active distortion mode!
-
Photo Booth, Props, & Meme Editor:
- 3-Second Countdown Photo Booth: Complete with countdown animation, flash overlay, shutter sound effect, and celebratory confetti burst!
- Interactive Props & Stickers: Add drag-and-drop party hats, clown noses, mustache, cool shades, alien eyes, devil horns, and sparkles with scaling and rotation controls.
- Meme Caption Generator: Add custom Top & Bottom Impact stroke text with fun preset templates.
- Snapshot Gallery: Review saved photos, download high-res PNGs, and manage your snapshot collection.
Files built: index.html, src/index.css, src/types.ts, src/utils/constants.ts, src/utils/soundEngine.ts, src/utils/webglEngine.ts, src/utils/patternGenerator.ts, src/components/Header.tsx, src/components/InputSelector.tsx, src/components/DistortionControls.tsx, src/components/FrameSelector.tsx, src/components/StickerEditor.tsx, src/components/MemeEditor.tsx, src/components/MirrorCanvas.tsx, src/components/HallOfMirrors.tsx, src/components/PresetsModal.tsx, src/components/GalleryModal.tsx, src/components/InfoModal.tsx, src/App.tsx