Skip to content
ExamplesOpen editor ↗

pebaY

→ mouseY

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

pebaY

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

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

pebaX, pebaYEFetileng, konopoETshwerwe, pebaETobeditswe