Skip to main content
100%

Fork of #Utrecht2024 TASK: SVG

✓ Published0🌍 Public
SSebastian Graeff
Last edited Jul 1, 2024
Created on Jul 1, 2024

This example renders a blank SVG canvas with a light blue border, ready for drawing a smiley face or reproducing artworks inspired by Dick Bruna or Marlow Moss. The code uses Svelte's component structure with a minimal `<script>` tag and an empty `<svg>` element sized at 500x500 pixels. Styling centers the SVG on the page with flexbox and applies a rounded border. While the visualization currently displays no graphical content, it demonstrates a basic Svelte setup for SVG-based drawing tasks, with d3 available as a dependency.

AI-generated description

Task

Draw a smiley with SVG.

Or try to reproduce the following, probably familiar, image by Dick Bruna.

<img src="https://higsch.com/workshop/svelte-d3-utrecht/miffy.png" /> <br /><br /><br />

Or this one by Marlow Moss (exhibited in the Centraal Museum, Utrecht).

<img src="https://higsch.com/workshop/svelte-d3-utrecht/marlow-moss.png" />
MIT Licensed

Similar vizzes