OSRS Plugin API
    Preparing search index...

    Namespace Graphics

    This section is for showing graphics, or 2D shapes and drawings, on the screen. This section holds different functions that will help you with adding a shape, removing a shape, and clearing all shapes on your old school runescape client screen, along with getting the client's dimensions.

    By using the methods in the section you will be able to draw simple 2D images onto your screen. If you want a red circle to show up on your screen, you use the Shape class to create the shape, and then use the Graphic namespace function addShape to draw it on the screen. If you want to remove a specific image that you have already put on the screen, you can apply the Graphic function of removeShape to the image and it will be erased from the screen. If you want to remove all the images you've added to the screen at once, you can use the Graphic function clearAllShapes to do that.

    Combining the Shape class and Graphics namespace functions, you have an endless variety of possibilities for creating amazing 2D images and drawings right onto your client screen.

    Functions

    addShape
    clearAllShapes
    clientDimensions
    removeShape
    worldToScreenCoord