.. default-domain:: http .. highlight:: json Point ===== .. _http-Drawing.Point: .. rubric:: Point A point, drawn as a dot that keeps its size on screen. Created using :http:post:`/drawing/add-point`. | Base class: :ref:`SphereShape ` A ``Point`` 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/point/(id)/position Position of the point. :param id: The identifier of the :ref:`Point ` object. :resjson tuple value: .. http:put:: /drawing/point/(id)/position Position of the point. :param id: The identifier of the :ref:`Point ` object. :reqjson tuple value: The new value. .. http:get:: /drawing/point/(id)/reference-frame The reference frame for the positions of the object. Inherited from :ref:`SphereShape `. :param id: The identifier of the :ref:`Point ` object. :resjson SpaceCenter.ReferenceFrame value: .. http:put:: /drawing/point/(id)/reference-frame The reference frame for the positions of the object. Inherited from :ref:`SphereShape `. :param id: The identifier of the :ref:`Point ` object. :reqjson SpaceCenter.ReferenceFrame value: The new value. .. http:get:: /drawing/point/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Point ` object. :resjson bool value: .. http:put:: /drawing/point/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Point ` object. :reqjson bool value: The new value. .. http:get:: /drawing/point/(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:`Point ` object. :resjson StdLib.ColorRGB value: .. http:put:: /drawing/point/(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:`Point ` object. :reqjson StdLib.ColorRGB value: The new value. .. http:get:: /drawing/point/(id)/size Diameter of the point, in pixels. :param id: The identifier of the :ref:`Point ` object. :resjson float value: .. http:put:: /drawing/point/(id)/size Diameter of the point, in pixels. :param id: The identifier of the :ref:`Point ` object. :reqjson float value: The new value. .. http:get:: /drawing/point/(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:`Point ` object. :resjson string value: .. http:put:: /drawing/point/(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:`Point ` object. :reqjson string value: The new value. .. http:post:: /drawing/point/(id)/remove Remove the object. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Point ` object.