RGB color theory
✓ Published1🌍 Public
This example visualizes RGB color theory by stacking four semi-transparent rectangles—red, green, blue, and yellow—in a centered cluster to show how primary colors blend into secondary hues through overlap. Built with React and D3 v5, it uses reusable `MyRect` SVG components defined in a separate exports file. Each rectangle is positioned with explicit x/y coordinates and an opacity of 0.7, allowing the overlapping intersections to reveal mixed colors like cyan and magenta. The static SVG scene demonstrates subtractive color mixing without interaction, focusing purely on the visual result of layered transparency.
AI-generated descriptionSmiley Face Part I (with React)
MIT Licensed