.. default-domain:: js .. highlight:: js .. module:: Drawing :no-index: Path ==== .. class:: Path The base class of orbit paths and of the paths whose points are in a reference frame. | Base class: :class:`Drawing.Drawable` | Derived classes: :class:`Drawing.FramedPath`, :class:`Drawing.OrbitPath` .. container:: inherited-members .. rubric:: Inherited Members * From :class:`Drawing.Drawable`: :meth:`getVisible `, :meth:`setVisible `, :meth:`getColor `, :meth:`setColor `, :meth:`getMaterial `, :meth:`setMaterial `, :meth:`remove ` .. 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) The 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