Skip to content

pebaX

The current horizontal position of the mouse cursor over the canvas.

Updates automatically every frame. Combine with pebaY to track the mouse position.

pebaX
A circle that follows the mouse horizontally
tiro setaLoeto() {
  thalaKanefase(400, 400);
}
tiro tshwantsha() {
  bokamorago(220);
  kgolokwe(pebaX, 200, 50);
}

pebaY, konopoYaPeba