.. default-domain:: http .. highlight:: json SphereShape =========== .. _http-Drawing.SphereShape: .. rubric:: SphereShape The base class of points and spheres, drawn at a position in a reference frame. | Base class: :ref:`Drawable ` | Derived classes: :ref:`Point `, :ref:`Sphere ` A ``SphereShape`` object is returned as ``{"id": ..., "class": ...}``, its identifier and the name of its own class. An argument is that object or the identifier alone. A path that acts on an object takes the identifier as ``(id)``. .. http:get:: /drawing/sphere-shape/(id)/reference-frame The reference frame for the positions of the object. :param id: The identifier of the :ref:`SphereShape ` object. :resjson SpaceCenter.ReferenceFrame value: .. http:put:: /drawing/sphere-shape/(id)/reference-frame The reference frame for the positions of the object. :param id: The identifier of the :ref:`SphereShape ` object. :reqjson SpaceCenter.ReferenceFrame value: The new value. .. http:get:: /drawing/sphere-shape/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`SphereShape ` object. :resjson bool value: .. http:put:: /drawing/sphere-shape/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`SphereShape ` object. :reqjson bool value: The new value. .. http:get:: /drawing/sphere-shape/(id)/color The color of the object. Inherited from :ref:`Drawable `. .. note:: For a path drawn with more than one color, this is the color at its start. :param id: The identifier of the :ref:`SphereShape ` object. :resjson StdLib.ColorRGB value: .. http:put:: /drawing/sphere-shape/(id)/color The color of the object. Inherited from :ref:`Drawable `. .. note:: For a path drawn with more than one color, this is the color at its start. :param id: The identifier of the :ref:`SphereShape ` object. :reqjson StdLib.ColorRGB value: The new value. .. http:get:: /drawing/sphere-shape/(id)/material 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. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`SphereShape ` object. :resjson string value: .. http:put:: /drawing/sphere-shape/(id)/material 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. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`SphereShape ` object. :reqjson string value: The new value. .. http:post:: /drawing/sphere-shape/(id)/remove Remove the object. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`SphereShape ` object.