.. default-domain:: lua .. highlight:: lua .. currentmodule:: Drawing Drawable ======== .. class:: Drawable The base class of boxes, markers, paths, points, spheres and text. | Derived classes: :class:`Drawing.Box`, :class:`Drawing.Marker`, :class:`Drawing.Path`, :class:`Drawing.SphereShape`, :class:`Drawing.Text` .. attribute:: visible: boolean Whether the object is visible. :Attribute: Can be read or written .. attribute:: color: StdLib.ColorRGB The color of the object. :Attribute: Can be read or written .. note:: For a path drawn with more than one color, this is the color at its start. .. attribute:: material: string The material used to render the object. Creates the material from a shader with the given name. Throws an exception if the object is a marker, which the game draws with its own material. :Attribute: Can be read or written .. method:: remove() Remove the object.