Skip to content
mohayonao edited this page Aug 11, 2014 · 1 revision

point

Draws a point to the canvas.

Examples

canvas.stroke(15)
  .point(20, 20)
  .point(20, 80)
  .point(80, 20)
  .point(80, 80);

Syntax

canvas.point(x, y);

Parameters

  • x: int
    • x-coordinate of the dot
  • y: int
    • y-coordinate of the dot

Returns

Canvas: self for method chaining

Related

Clone this wiki locally