Skip to content

noCursor()

Hides the cursor from view.

Examples

noCursor example 1

function setup()
  size(100,100)
  windowTitle('noCursor example')
  -- Hide the cursor.
  noCursor()
end

function draw()
  background(200)

  circle(mouseX, mouseY, 10)

  describe('A white circle on a gray background. The circle follows the mouse as it moves. The cursor is hidden.')
end

This reference page contains content adapted from p5.js and Processing by p5.js Contributors and Processing Foundation, licensed under CC BY-NC-SA 4.0.