.. default-domain:: cpp .. highlight:: cpp .. namespace:: krpc::services::Drawing Drawable ======== .. class:: Drawable The base class of boxes, markers, paths, points, spheres and text. | Derived classes: :class:`Box`, :class:`Marker`, :class:`Path`, :class:`SphereShape`, :class:`Text` .. function:: bool visible() .. function:: void set_visible(bool value) Whether the object is visible. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: StdLib::ColorRGB color() .. function:: void set_color(StdLib::ColorRGB value) The color of the object. :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. .. function:: std::string material() .. function:: void set_material(std::string 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. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. function:: void remove() Remove the object. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph