Skip to main content

Interface: Mobject1DOptions

Defined in: mobjects/point/Mobject1D.ts:8

Options for creating a Mobject1D

Properties

color?

optional color: string

Defined in: mobjects/point/Mobject1D.ts:18

Color as CSS color string. Default: white (#FFFFFF)


density?

optional density: number

Defined in: mobjects/point/Mobject1D.ts:16

Alternative to numPoints: density (points per unit length). Overrides numPoints if provided.


end?

optional end: Vector3Tuple

Defined in: mobjects/point/Mobject1D.ts:12

End point [x, y, z]. Default: [1, 0, 0]


numPoints?

optional numPoints: number

Defined in: mobjects/point/Mobject1D.ts:14

Number of points along the line. Default: 20


opacity?

optional opacity: number

Defined in: mobjects/point/Mobject1D.ts:20

Opacity from 0 to 1. Default: 1


pointSize?

optional pointSize: number

Defined in: mobjects/point/Mobject1D.ts:22

Size of each point in pixels. Default: 6


start?

optional start: Vector3Tuple

Defined in: mobjects/point/Mobject1D.ts:10

Start point [x, y, z]. Default: [-1, 0, 0]