Rainbow Smoke Art
by kamal Carrillo
Check out "Rainbow Smoke Art" by kamal Carrillo - featuring Canvas API, Sprite Manager, Sprite Store and more. 166.7k views. Try this Snapchat Lens on Easy Lens.
166.7k views
Features
- Canvas API: Procedurally renders soft, flowing rainbow smoke ribbons along the tracked nose path.
- 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: UI textures: translucent smoke-cloud swatches and swirling cloud draw-mode icons.
- Touch Events: Captures screen touches to select colors, toggle drawing mode, and tap the Clear All button.
- FaceLandmarks: Tracks the user’s nose position in 2D each frame to drive the fireworks trail brush position for drawing.
- Text On Screen: Helper text describing rainbow smoke painting controls.