.. default-domain:: http .. highlight:: json Path ==== .. _http-Drawing.Path: .. rubric:: Path The base class of orbit paths and of the paths whose points are in a reference frame. | Base class: :ref:`Drawable ` | Derived classes: :ref:`FramedPath `, :ref:`OrbitPath ` A ``Path`` 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/path/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Path ` object. :resjson bool value: .. http:put:: /drawing/path/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Path ` object. :reqjson bool value: The new value. .. http:get:: /drawing/path/(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:`Path ` object. :resjson StdLib.ColorRGB value: .. http:put:: /drawing/path/(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:`Path ` object. :reqjson StdLib.ColorRGB value: The new value. .. http:get:: /drawing/path/(id)/colors The colors of the path, blended evenly from its start to its end. .. note:: Throws an exception if the list is empty or holds more than 8 colors. :param id: The identifier of the :ref:`Path ` object. :resjson list value: .. http:put:: /drawing/path/(id)/colors The colors of the path, blended evenly from its start to its end. .. note:: Throws an exception if the list is empty or holds more than 8 colors. :param id: The identifier of the :ref:`Path ` object. :reqjson list value: The new value. .. http:get:: /drawing/path/(id)/thickness The thickness of the path. :param id: The identifier of the :ref:`Path ` object. :resjson float value: .. http:put:: /drawing/path/(id)/thickness The thickness of the path. :param id: The identifier of the :ref:`Path ` object. :reqjson float value: The new value. .. http:get:: /drawing/path/(id)/start-arrow Whether an arrow head is drawn at the start. :param id: The identifier of the :ref:`Path ` object. :resjson bool value: .. http:put:: /drawing/path/(id)/start-arrow Whether an arrow head is drawn at the start. :param id: The identifier of the :ref:`Path ` object. :reqjson bool value: The new value. .. http:get:: /drawing/path/(id)/end-arrow Whether an arrow head is drawn at the end. :param id: The identifier of the :ref:`Path ` object. :resjson bool value: .. http:put:: /drawing/path/(id)/end-arrow Whether an arrow head is drawn at the end. :param id: The identifier of the :ref:`Path ` object. :reqjson bool value: The new value. .. http:get:: /drawing/path/(id)/arrow-size The size of the arrow heads, relative to the thickness. :param id: The identifier of the :ref:`Path ` object. :resjson float value: .. http:put:: /drawing/path/(id)/arrow-size The size of the arrow heads, relative to the thickness. :param id: The identifier of the :ref:`Path ` object. :reqjson float value: The new value. .. http:get:: /drawing/path/(id)/dashed Whether the path is drawn as a dashed line. :param id: The identifier of the :ref:`Path ` object. :resjson bool value: .. http:put:: /drawing/path/(id)/dashed Whether the path is drawn as a dashed line. :param id: The identifier of the :ref:`Path ` object. :reqjson bool value: The new value. .. http:get:: /drawing/path/(id)/label The text drawn halfway along the path, facing the camera. Empty for no label. :param id: The identifier of the :ref:`Path ` object. :resjson string value: .. http:put:: /drawing/path/(id)/label The text drawn halfway along the path, facing the camera. Empty for no label. :param id: The identifier of the :ref:`Path ` object. :reqjson string value: The new value. .. http:get:: /drawing/path/(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:`Path ` object. :resjson string value: .. http:put:: /drawing/path/(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:`Path ` object. :reqjson string value: The new value. .. http:post:: /drawing/path/(id)/remove Remove the object. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Path ` object.