.. default-domain:: js .. highlight:: js .. module:: Drawing :no-index: 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` .. method:: getVisible() setVisible(value) Whether the object is visible. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getColor() setColor(value) The color of the object. :Property: Can be read or written :rtype: :class:`StdLib.ColorRGB` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. note:: For a path drawn with more than one color, this is the color at its start. .. method:: getMaterial() setMaterial(value) 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. :Property: Can be read or written :rtype: ``string`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: remove() Remove the object. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph