Painting

public class Painting

Utilities for painting over the game screen

Functions

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