Skip to content

mohayonao/gretro-paint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published