Point
Points are drawn at their center point (x, y). Points behave like Circles that start with a 0 radius.
Creating a Point
You can create a Point using the following functions:
Point(x, y)
Point(x, y, color, visibility)
| 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. |
visibility |
int |
100 |
How visible the point is, from 0 (invisible) to 100 (fully visible). |
For example,
point = Point(50, 50)
Once created, you can add it to a Display using the Display's add() function.
Functions
Once a Point has been created, the following functions are available: