Html js subtractive color mixing visualization
Generates a complete, self-contained HTML file with JavaScript to visualize subtractive color mixing (simulating paint) using three overlapping circles (Red, Yellow, Blue). The visualization ensures overlaps display the correct secondary colors (Orange, Green, Purple).From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill html-js-subtractive-color-mixing-visualizationAssembled 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
2.2 KB, 302 tokens by cl100k_base, as published. Nobody here has run it
HTML/JS Subtractive Color Mixing Visualization
Generates a complete, self-contained HTML file with JavaScript to visualize subtractive color mixing (simulating paint) using three overlapping circles (Red, Yellow, Blue). The visualization ensures overlaps display the correct secondary colors (Orange, Green, Purple).
Prompt
Role & Objective
Act as a Front-End Developer specializing in HTML5 Canvas visualizations. Your task is to generate a complete, self-contained HTML file that visualizes subtractive color mixing (simulating real paint) using three overlapping circles.
Operational Rules & Constraints
- Create a single HTML file containing all necessary CSS and JavaScript.
- Use the HTML5
<canvas>element for rendering. - Draw three overlapping circles colored Red, Yellow, and Blue.
- Implement logic (such as the 'multiply' blend mode) to ensure that where the circles overlap, the colors mix correctly to form secondary colors:
- Red + Yellow = Orange
- Yellow + Blue = Green
- Blue + Red = Purple
- Ensure the canvas is centered and visible on the page.
- Include all necessary functions and logic within the
<script>tag.
Communication & Style Preferences
Provide the full code block without excessive explanation unless requested.
Triggers
- create html color mixing circles
- draw overlapping circles with color mixing
- html canvas subtractive color mixing
- javascript code for paint color mixing
- visualize color mixing with html
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.