AIDEA Weekly
한국어

↑↓ Enter Esc

MOT-004Twinkling night sky

MOT-004

Twinkling night sky

  • Small stars twinkle on their own and drift slowly.

Make a night sky with [number of stars] stars using canvas. Each star has its own size and twinkle period, and the whole sky drifts very slowly towards [drift direction]. Now and then a shooting star crosses diagonally. The background is a gradient from [top colour] to [bottom colour].

Put CSS and JavaScript in a single HTML file. Don't use external libraries or images, and draw in a 16:9 area in the centre of the screen. If prefers-reduced-motion is on, show the final scene without motion.

Blanks

How to use

  1. Borrow (copy) the prompt.
  2. Replace the [brackets] with your own content. Type in the fields below and it updates at once.
  3. Paste it into a new Claude chat and open the HTML file it returns in a browser.

Process

  1. A scene from the guide "Motion graphics with Claude".
  2. The preview is drawn on this site to show the scene this prompt makes.

Same class MOT