Skip to main content
100%

Fork of Exercise 1: SVG Fundamentals

✓ Published1🌍 Public
Ccaitlin-woods
Last edited Oct 3, 2021
Created on Oct 3, 2021

This example displays a full-window SVG visualization of vertical black bars, creating an abstract, striped pattern that fills the viewport. It uses the raw Document Object Model (DOM) API, specifically `document.createElementNS` with the SVG namespace, to dynamically generate rectangles. The code calculates bar size and count based on window dimensions, then appends each `rect` element to the SVG root, which is itself appended to the body. No external libraries are used; the rendering is entirely driven by native JavaScript and SVG.

AI-generated description

Sunrise/sunset.

MIT Licensed

Similar vizzes