0.1.0 • Published 10 years ago

gretro-paint v0.1.0

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

gretro-paint

Gretro-paint is a gretro plugin to fill an area.

npm.io

Installation

browser

include gretro-paint.js after including gretro.js

<script src="gretro.js"></script>
<script src="gretro-paint.js"></script>
node.js

gretro-paint is available on npm.

$ npm install gretro-paint
var gretro = require("gretro");
var gretroPaint = require("gretro-paint");

gretro.use(gretroPaint);

API Reference

paint

Syntax

canvas.paint(x, y);

Parameters

  • x: int
    • x-coordinate of the beginning point to fill
  • y: int
    • y-coordinate of the beginning point to fill

Returns

Canvas: self for method chaining