0.6.4 • Published 6 years ago

ait-canvas v0.6.4

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

ait-canvas

Canvas words for the Ait Language

Install

npm install mollerse/ait-canvas

Usage

Browser

@load ait-canvas ;

"canvas" createElement canvasContext

Load the module. Create a canvas-element (or grab an existing one, doesn't matter) and grab the canvasContext. Now you can use the canvas words in this pacakge.

Node

The canvas is normaly not available in node, but there is a package called canvas which can be used. The bindings for this is available in the node.js file. It can be used like this:

@load ait-canvas ;
@load ait-canvas/node ;

nodeCanvas canvasContext

The main difference is the nodeCanvas word which gives you an instance of node-canvas.

Still missing

  • Image drawing
  • Text
  • Pixel manipulation
0.6.4

6 years ago

0.6.3

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.2

6 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

8 years ago