Skip to main content

Interface: DashedLineOptions

Defined in: src/mobjects/geometry/DashedLine.ts:13

Options for creating a DashedLine

Properties​

color?​

optional color: string

Defined in: src/mobjects/geometry/DashedLine.ts:28

Stroke color as CSS color string. Default: WHITE (#FFFFFF)


dashLength?​

optional dashLength: number

Defined in: src/mobjects/geometry/DashedLine.ts:24

Approximate length of each dash (Manim CE's dash_length). The dash count is max(2, ceil(length / dashLength * dashRatio)), and the dashes are stretched so the line starts and ends with one. Default: 0.05 (Manim CE's DEFAULT_DASH_LENGTH).


dashRatio?​

optional dashRatio: number

Defined in: src/mobjects/geometry/DashedLine.ts:26

Fraction of the line covered by dashes (Manim CE's dashed_ratio). Default: 0.5


end?​

optional end: Vector3Tuple

Defined in: src/mobjects/geometry/DashedLine.ts:17

End point of the line. Default: [1, 0, 0]


start?​

optional start: Vector3Tuple

Defined in: src/mobjects/geometry/DashedLine.ts:15

Start point of the line. Default: [0, 0, 0]


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/geometry/DashedLine.ts:30

Stroke width in pixels. Default: 4 (Manim's default)