q5play
    Preparing search index...

    Function cursor

    • 🖲 Sets the cursor to a CSS cursor type or image. If an image is provided, optional x and y coordinates can specify the active point of the cursor.

      Parameters

      • name: string

        name of the cursor or the url to an image

      • Optionalx: number

        x-coordinate of the cursor's point

      • Optionaly: number

        y-coordinate of the cursor's point

      Returns void

      await Canvas(200, 100);
      cursor('pointer');