Skip to content
ExamplesOpen editor ↗

pebaX

→ mouseX

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

pebaX

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

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

pebaY, pebaXEFetileng, konopoETshwerwe, pebaETobeditswe