Dot sphere
Drag the slider and scattered points of light pull together into a perfect 3D sphere.
Copies a short instruction with your private download link. Paste it into your agent: it downloads the whole skill (the source code, the setup steps and the mistakes we already made for you) and builds the screen.
Works with
What it does
Programmatic rotating 3D dot-sphere background. Each dot is placed via the classic spherical Fibonacci / Vogel-spiral distribution; an optional morphAmount (0...1) lerps each dot between a uniform random 3D cloud and its sphere position. One-axis perspective projection scales dot size with depth. Palette cross-fade is delayed per dot by its Y position so the color wave appears to wash up the sphere. Rendered with a single SwiftUI Canvas per frame (not N independent views) so 800+ dots stay at 60fps on iPhone.
Requires iOS 18+ / macOS 15+ (SwiftUI TimelineView + Canvas).
What you get
- ✓422 lines of source code, ready to paste
- ✓File Layout
- ✓Source Code