Skip to content

Instantly share code, notes, and snippets.

@Vintharas
Last active August 22, 2019 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vintharas/797234a6bd612628dd2af584409436bb to your computer and use it in GitHub Desktop.
Save Vintharas/797234a6bd612628dd2af584409436bb to your computer and use it in GitHub Desktop.
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