.. default-domain:: js .. highlight:: js .. module:: Drawing :no-index: Circle ====== .. class:: Circle A circle. Created using :func:`Drawing.addCircle`. .. method:: getCenter() setCenter(value) Position of the center of the circle. :Property: Can be read or written :rtype: ``[number, number, number]`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getNormal() setNormal(value) Normal of the plane of the circle. :Property: Can be read or written :rtype: ``[number, number, number]`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getRadius() setRadius(value) Radius of the circle, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getReferenceFrame() setReferenceFrame(value) Reference frame for the positions of the object. :Property: Can be read or written :rtype: :class:`SpaceCenter.ReferenceFrame` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getVisible() setVisible(value) Whether the object is visible. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getColor() setColor(value) The color of the path. :Property: Can be read or written :rtype: :class:`StdLib.ColorRGB` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. note:: For a path drawn with more than one color, this is the color at its start. .. method:: getColors() setColors(value) The colors of the path, blended evenly from its start to its end. :Property: Can be read or written :rtype: ``Array`` of :class:`StdLib.ColorRGB` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. note:: Throws an exception if the list is empty or holds more than 8 colors. .. method:: getThickness() setThickness(value) The thickness of the path. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getStartArrow() setStartArrow(value) Whether an arrow head is drawn at the start. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getEndArrow() setEndArrow(value) Whether an arrow head is drawn at the end. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getArrowSize() setArrowSize(value) The size of the arrow heads, relative to the thickness. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getDashed() setDashed(value) Whether the path is drawn as a dashed line. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getLabel() setLabel(value) Text drawn halfway along the path, facing the camera. Empty for no label. :Property: Can be read or written :rtype: ``string`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: getMaterial() setMaterial(value) Material used to render the object. Creates the material from a shader with the given name. :Property: Can be read or written :rtype: ``string`` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. method:: remove() Remove the object. :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph