Ocean Wave Doodle
by Kawaljot Singh
Check out "Ocean Wave Doodle" by Kawaljot Singh - featuring Canvas API, Sprite Manager, Sprite Store and more. Try this Snapchat Lens on Easy Lens.
Features
- Canvas API: Procedurally renders an ocean-wave nose trail onto a full-screen 2D on-screen canvas texture.
- Sprite Manager: Displays and manages 2D UI sprites (palette swatches and draw toggle) and performs hit testing for taps on those UI elements. Also used to convert touch unit coords to pixel coords for Clear All hit testing.
- Sprite Store: Seashell palette swatches and beach-themed control buttons.
- FaceLandmarks: Tracks the user’s nose position in 2D each frame to drive the fireworks trail brush position for drawing.
- Text On Screen: Ocean exploration instructions text.
- Touch Events: Captures screen touches to select colors, toggle drawing mode, and tap the Clear All button.