OSRS Plugin API
    Preparing search index...

    Function removeShape

    • Remove the shape. No-op if not found in draw list.

      Parameters

      Returns boolean

      a boolean indicating if the removal was completed. Returns false if shape is not registered

      --shapes starts visible.
      local myShape = osrs.Shape.new(osrs.Shape.PrimitiveType.RECTANGLE)

      --hide shape. Can be shown again by calling addShape.
      if (osrs.Graphics.removeShape(myShape)) then
      osrs.print("Shape was successfully removed.")
      end

      local otherShape = osrs.Shape.new(osrs.Shape.PrimitiveType.RECTANGLE, false)
      if (not osrs.Graphics.removeShape(otherShape)) then
      osrs.print("Shape was not being rendered and thus cannot be removed.")
      end