Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.3 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.3 KB

gretro-paint

NPM Version Dependency Status devDependency Status

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

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