Skip to content

drawPoint()

Draw a single point straight onto the display.

display.drawPoint(x, y)

This draws to the canvas and returns nothing, which is fast and best for shapes you will not change later. To keep a handle you can move or delete, create a Point and add() it instead. Erase these drawings with clearDrawing().

Parameters

display.drawPoint(x, y, color=Color.BLACK)
Parameter Type Default Description
x int or float required The horizontal position, in pixels.
y int or float required The vertical position, in pixels.
color Color Color.BLACK The color.