Point#

Point

A point, drawn as a dot that keeps its size on screen. Created using POST /drawing/add-point.

A Point object is passed and returned as its identifier, a number. A path that acts on an object takes it as (id).

GET /drawing/point/(id)/position#

Position of the point.

Parameters:
  • id – The identifier of the Point object.

Response JSON Object:
  • value (tuple<double, double, double>)

PUT /drawing/point/(id)/position#

Position of the point.

Parameters:
  • id – The identifier of the Point object.

Request JSON Object:
  • value (tuple<double, double, double>) – The new value.

GET /drawing/point/(id)/reference-frame#

Reference frame for the positions of the object.

Parameters:
  • id – The identifier of the Point object.

Response JSON Object:
  • value (SpaceCenter.ReferenceFrame)

PUT /drawing/point/(id)/reference-frame#

Reference frame for the positions of the object.

Parameters:
  • id – The identifier of the Point object.

Request JSON Object:
  • value (SpaceCenter.ReferenceFrame) – The new value.

GET /drawing/point/(id)/visible#

Whether the object is visible.

Parameters:
  • id – The identifier of the Point object.

Response JSON Object:
  • value (bool)

PUT /drawing/point/(id)/visible#

Whether the object is visible.

Parameters:
  • id – The identifier of the Point object.

Request JSON Object:
  • value (bool) – The new value.

GET /drawing/point/(id)/color#

The color of the object.

Parameters:
  • id – The identifier of the Point object.

Response JSON Object:
  • value (StdLib.ColorRGB)

PUT /drawing/point/(id)/color#

The color of the object.

Parameters:
  • id – The identifier of the Point object.

Request JSON Object:
  • value (StdLib.ColorRGB) – The new value.

GET /drawing/point/(id)/size#

Diameter of the point, in pixels.

Parameters:
  • id – The identifier of the Point object.

Response JSON Object:
  • value (float)

PUT /drawing/point/(id)/size#

Diameter of the point, in pixels.

Parameters:
  • id – The identifier of the Point object.

Request JSON Object:
  • value (float) – The new value.

GET /drawing/point/(id)/material#

Material used to render the object. Creates the material from a shader with the given name.

Parameters:
  • id – The identifier of the Point object.

Response JSON Object:
  • value (string)

PUT /drawing/point/(id)/material#

Material used to render the object. Creates the material from a shader with the given name.

Parameters:
  • id – The identifier of the Point object.

Request JSON Object:
  • value (string) – The new value.

POST /drawing/point/(id)/remove#

Remove the object.

Parameters:
  • id – The identifier of the Point object.