Loop Colori
✓ Published0🌍 Public
Loop Colori generates a full-screen SVG composition of 200 vertical rectangles, each stroked with a thick border, cycling through a fixed palette of orange, red, purple, and blue. The code uses plain JavaScript with the DOM API to create SVG elements via `document.createElementNS`, setting attributes for position, width, height, fill, and stroke. A nested loop condition alternates the fill and stroke colors among the four array values, producing a striped, repeating pattern across the viewport. The example relies on no external libraries, only native browser APIs for rendering.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed