point(x, y)

Draws a point, a coordinate in space at the dimension of the current stroke weight. The first parameter is the horizontal value for the point, the second value is the vertical value for the point. The color of the point is determined by the current stroke.

Type: function

Parameter(s):

  • x {Number}:

    X-coordinate of the point.

  • y {Number}:

    Y-coordinate of the point.

Returns:

  • {Oval}:

    The point as an Oval object.