Gretro-paint is a gretro plugin to fill an area.
include gretro-paint.js after including gretro.js
<script src="gretro.js"></script>
<script src="gretro-paint.js"></script>
gretro-paint
is available on npm.
$ npm install gretro-paint
var gretro = require("gretro");
var gretroPaint = require("gretro-paint");
gretro.use(gretroPaint);
canvas.paint(x, y);
- x: int
- x-coordinate of the beginning point to fill
- y: int
- y-coordinate of the beginning point to fill
Canvas: self for method chaining