.. default-domain:: http .. highlight:: json Circle ====== .. _http-Drawing.Circle: .. rubric:: Circle A circle. Created using :http:post:`/drawing/add-circle`. | Base class: :ref:`FramedPath ` A ``Circle`` 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/circle/(id)/center Position of the center of the circle. :param id: The identifier of the :ref:`Circle ` object. :resjson tuple value: .. http:put:: /drawing/circle/(id)/center Position of the center of the circle. :param id: The identifier of the :ref:`Circle ` object. :reqjson tuple value: The new value. .. http:get:: /drawing/circle/(id)/normal Normal of the plane of the circle. :param id: The identifier of the :ref:`Circle ` object. :resjson tuple value: .. http:put:: /drawing/circle/(id)/normal Normal of the plane of the circle. :param id: The identifier of the :ref:`Circle ` object. :reqjson tuple value: The new value. .. http:get:: /drawing/circle/(id)/radius Radius of the circle, in meters. :param id: The identifier of the :ref:`Circle ` object. :resjson double value: .. http:put:: /drawing/circle/(id)/radius Radius of the circle, in meters. :param id: The identifier of the :ref:`Circle ` object. :reqjson double value: The new value. .. http:get:: /drawing/circle/(id)/reference-frame The reference frame for the positions of the object. Inherited from :ref:`FramedPath `. :param id: The identifier of the :ref:`Circle ` object. :resjson SpaceCenter.ReferenceFrame value: .. http:put:: /drawing/circle/(id)/reference-frame The reference frame for the positions of the object. Inherited from :ref:`FramedPath `. :param id: The identifier of the :ref:`Circle ` object. :reqjson SpaceCenter.ReferenceFrame value: The new value. .. http:get:: /drawing/circle/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Circle ` object. :resjson bool value: .. http:put:: /drawing/circle/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Circle ` object. :reqjson bool value: The new value. .. http:get:: /drawing/circle/(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:`Circle ` object. :resjson StdLib.ColorRGB value: .. http:put:: /drawing/circle/(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:`Circle ` object. :reqjson StdLib.ColorRGB value: The new value. .. http:get:: /drawing/circle/(id)/colors The colors of the path, blended evenly from its start to its end. Inherited from :ref:`Path `. .. note:: Throws an exception if the list is empty or holds more than 8 colors. :param id: The identifier of the :ref:`Circle ` object. :resjson list value: .. http:put:: /drawing/circle/(id)/colors The colors of the path, blended evenly from its start to its end. Inherited from :ref:`Path `. .. note:: Throws an exception if the list is empty or holds more than 8 colors. :param id: The identifier of the :ref:`Circle ` object. :reqjson list value: The new value. .. http:get:: /drawing/circle/(id)/thickness The thickness of the path. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :resjson float value: .. http:put:: /drawing/circle/(id)/thickness The thickness of the path. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :reqjson float value: The new value. .. http:get:: /drawing/circle/(id)/start-arrow Whether an arrow head is drawn at the start. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :resjson bool value: .. http:put:: /drawing/circle/(id)/start-arrow Whether an arrow head is drawn at the start. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :reqjson bool value: The new value. .. http:get:: /drawing/circle/(id)/end-arrow Whether an arrow head is drawn at the end. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :resjson bool value: .. http:put:: /drawing/circle/(id)/end-arrow Whether an arrow head is drawn at the end. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :reqjson bool value: The new value. .. http:get:: /drawing/circle/(id)/arrow-size The size of the arrow heads, relative to the thickness. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :resjson float value: .. http:put:: /drawing/circle/(id)/arrow-size The size of the arrow heads, relative to the thickness. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :reqjson float value: The new value. .. http:get:: /drawing/circle/(id)/dashed Whether the path is drawn as a dashed line. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :resjson bool value: .. http:put:: /drawing/circle/(id)/dashed Whether the path is drawn as a dashed line. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :reqjson bool value: The new value. .. http:get:: /drawing/circle/(id)/label The text drawn halfway along the path, facing the camera. Empty for no label. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :resjson string value: .. http:put:: /drawing/circle/(id)/label The text drawn halfway along the path, facing the camera. Empty for no label. Inherited from :ref:`Path `. :param id: The identifier of the :ref:`Circle ` object. :reqjson string value: The new value. .. http:get:: /drawing/circle/(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:`Circle ` object. :resjson string value: .. http:put:: /drawing/circle/(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:`Circle ` object. :reqjson string value: The new value. .. http:post:: /drawing/circle/(id)/remove Remove the object. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Circle ` object.