Package Exports
- seescript
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (seescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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