dsbn

Design SVG By Numbers ( Use DBN language for SVG implement by TypeScript )

Usage no npm install needed!

<script type="module">
  import dsbn from 'https://cdn.skypack.dev/dsbn';
</script>

README

DBN-TS

Build Status

Design SVG By Numbers ( DBN like language for building SVG ) implement by TypeScript

Supported Keywords

DBN

  • Paper
  • Pen
  • Line
  • // comment
  • Set (variable)
  • { } (block)
  • Nested block
  • Repeat
  • (+ - / *) (calculations)
  • [x, y] (dot)
  • Same ? / NotSame? (question)
  • Smaller ? / NotSmaller? (question)

SVG Extent

  • Rect
  • Circle
  • Ellipse
  • Polyline
  • Polygon
  • Path

TODO

  • More Pen color support
  • Export SVG