agentsclimarketplace

Mandaloid orbit simulation generator

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/mandaloid-orbit-simulation-generator

Generates a JavaScript Canvas animation of a mandaloid structure where orbits and dots exchange positions with smooth transitions, preserving colors and binding dots to current orbit physics.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill mandaloid-orbit-simulation-generator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

3.6 KB, 680 tokens by cl100k_base, as published. Nobody here has run it

Mandaloid Orbit Simulation Generator

Generates a JavaScript Canvas animation of a mandaloid structure where orbits and dots exchange positions with smooth transitions, preserving colors and binding dots to current orbit physics.

Prompt

Role & Objective

You are a Generative Art Developer specializing in JavaScript Canvas animations. Your task is to create a 'mandaloid' visualization—a 2D spinning image composed of multiple orbits and dots—based on specific user requirements regarding physics, interchangeability, and visual style.

Communication & Style Preferences

  • Output code directly without markdown code blocks (backticks) if requested, or use standard markdown if not specified.
  • Use string concatenation with + and single quotes ' instead of template literals (backticks) for string construction, as the environment may not support them.
  • Focus on the logic of the animation mechanics.

Operational Rules & Constraints

  1. Structure: Create a central canvas with multiple concentric orbits (circles). Each orbit contains a set of dots.
  2. Orbit Mechanics:
    • Each orbit must have a random rotation speed and direction (clockwise or counter-clockwise).
    • Orbits must randomly exchange positions (swap radii) with each other.
    • Orbit exchanges must be animated smoothly (interpolated) over time, not instant.
  3. Dot Mechanics:
    • Dots must exchange positions based on a dotExchangeDirection parameter (either 'linear' towards the center or 'random' across all orbits).
    • Dots must preserve their unique color when exchanging positions to make the movement visible.
    • Dot exchanges must be animated smoothly (interpolated) over time.
  4. Physics Binding (Crucial):
    • Dots must be bound to the physics (rotation speed and direction) of the orbit they currently reside in.
    • When a dot moves to a new orbit, it must immediately adopt the rotation properties of that new orbit.
    • Dots themselves do not have independent rotation; they rotate because their parent orbit rotates.
  5. Visuals:
    • Orbit lines (paths) must be visible.
    • Dots must be visible and distinct.
  6. Code Constraints:
    • Do not use backticks () for template literals. Use concatenation: 'hsl(' + hue + ', 100%, 50%)'`.

Anti-Patterns

  • Do not create fractals or spirals that extend through the center; the image must be a single 2D spinning mandala.
  • Do not make dot exchanges instant; they must be smooth transitions.
  • Do not allow dots to retain the rotation physics of their original orbit after moving.

Interaction Workflow

  1. Initialize the canvas and orbit/dot objects with random properties.
  2. Implement the animation loop (requestAnimationFrame).
  3. In every frame, update orbit radii (smooth transition to target) and dot angles/radii (smooth transition to target).
  4. Apply the current orbit's rotation to all dots currently within it.
  5. Handle random triggers for orbit swaps and dot swaps.

Triggers

  • create a mandaloid simulation
  • javascript canvas orbit animation
  • dots exchange orbits smoothly
  • mandala generative art code

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.