Skip to content
Ian Glen edited this page Aug 16, 2013 · 7 revisions

scripts/graphics/tile.js

Grid object (extends Grid object)

Methods

Grid.drawLine(IsometricPoint startingPoint, IsometricPoint endingPoint, Color color, float strokeThickness)

Draws a line on the grid.

Optional: color and strokeThickness: will default to rgb(170, 170, 170) and 3 if omitted

Grid.drawRect(IsometricPoint startingPoint, IsometricPoint endingPoint, Color color, boolean fill, float strokeThickness)

Draws a rectangle on the grid. fill defines whether or not rectangle will be filled with color at 40% opacity

Optional: color, fill, and strokeThickness: will default to rgb(170, 170, 170), false, and 3 if omitted

Properties

Clone this wiki locally