Skip to content

Instantly share code, notes, and snippets.

@Vintharas

Vintharas/.block

Last active Aug 22, 2019
Embed
What would you like to do?
Create Kirby's Face
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v5.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
<svg width=900 height=500></svg>
</head>
<body>
<script>
const svg = d3.select("svg");
// create different SVG shapes and change their properties to make
// a simple kirby
// => SVG in MDN: https://developer.mozilla.org/en-US/docs/Web/SVG
// => D3 API: https://github.com/d3/d3/blob/master/API.md
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment