1.0.5 • Published 6 years ago
seescript v1.0.5
SeeScript
A Package for a Programming Language & Interpreter for SVG Animations
Installation
> npm install seescript --save
Getting Started
You must include a SVG element with the ID of canvas
<svg id="canvas"></svg>
The JavaScript Code
const seeScript = require('seescript')
seeScript.runSeeScript('var box = rectangle (0,0,500,500,255,0,0);')
Language Documentation
Variables
set x as 10
Drawing
center 0,0
width 100
heigth 100
draw x
Example
set x as rectangle:
center 0,0
width 100
heigth 100
draw x
update x:
center 0,20