Home > spacecadet.js

spacecadet.js

Spacecadet.js is a project mainly written in JavaScript, it's free.

A tiny framework for drawing computer generated images.

#

spacecadet.js v.1

- A tiny framework for drawing computer generated images.

#

unlicensed

      TABLE OF CONTENTS

I. Overview

II. Usage

III. API

IV. Todo

V. Contributers/Contributing

I. OVERVIEW

spacecadet.js is a tiny framework for drawing computer generated images.

See USAGE and example.htm for my details.

II. USAGE

SEE example.htm for an example of Lorenz butterfly

III. API

Draw Isosceles (or Equilateral) triangle

  • x,y : coordinates (centroid)
  • w,h : dimensions (width,height)
  • r : rotate (radians)
  • c : color drawIsoTriangle(x,y,w,h,r,c);

Draw Circle

  • x,y : coordinates
  • r : radius
  • c : color drawCircle(x,y,r,c);

Draw Rectangle

  • x,y : coordinates
  • w,h : dimensions (width,height)
  • c : color drawRectangle(x,y,w,h,c);

Clear Canvas clear();

III. TODO

  • Add more examples.
  • API a bit puny...

IV. Contributers/Contributing

spacecadet.js is developed by aef ([email protected]). Originally developed on Oct 10 2010.

To contribute visit http://github.com/aef-/spacecadet.js.

Previous:linux-confs