Painting

open class Painting

Utilities for painting over the game screen

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun addPaint(graphicsConsumer: Consumer<Graphics2D>)
Adds a paint listener to draw on the canvas
Link copied to clipboard
open fun clearPaint()
Removes all paint listeners
Link copied to clipboard
open fun removePaint(graphicsConsumer: Consumer<Graphics2D>)
Removes a paint listener
Link copied to clipboard
open fun setMousePaint(mousePaint: MousePaint)
Sets the mouse paint function for the script to draw on the OSRS canvas based on mouse position
Link copied to clipboard
open fun setMouseSplinePaint(mouseSplinePaint: MouseSplinePaint)
Sets the mouse paint function for the script to draw on the OSRS canvas based on mouse spline
Link copied to clipboard
open fun setPaint(graphicsConsumer: Consumer<Graphics2D>)
Sets the paint function for the script to draw on the OSRS canvas.