Skip to main content
100%

Black Canva

✓ Published0🌍 Public
Lloicvdk
Last edited Jul 27, 2020
Created on Jul 27, 2020
Forked from Let's make a face

A black rounded rectangle fills the entire browser viewport. The visualization adapts to the screen size by querying the document body's dimensions and setting the SVG's width and height attributes accordingly. The code uses d3.select to target the SVG element, then appends a rect with a corner radius of 100 pixels. The SVG is rendered in the browser, with the script loading d3 v5 from the unpkg CDN. The rect's dimensions match the computed viewport size, creating a simple full-screen black canvas with softly rounded corners.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes