Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Exercise 1: SVG Fundamentals

Public visualization

Fork of Exercise 1: SVG Fundamentals

0 stars1🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed