Skip to main content

Interface: DNAHelixOptions

Defined in: src/mobjects/biology/biologyTypes.ts:28

Options for a DNAHelix.

Properties​

backboneColors?​

optional backboneColors: [string, string]

Defined in: src/mobjects/biology/biologyTypes.ts:48

The two backbone strand colors. Default: a blue and an orange.


baseColors?​

optional baseColors: Partial<Record<BaseSymbol, string>>

Defined in: src/mobjects/biology/biologyTypes.ts:50

Per-base color overrides, merged over the default base palette.


basePairs?​

optional basePairs: number

Defined in: src/mobjects/biology/biologyTypes.ts:36

Number of base-pair rungs. Default: 12.


colorByBase?​

optional colorByBase: boolean

Defined in: src/mobjects/biology/biologyTypes.ts:40

Color each rung by its base. Default: true.


numSamplesPerTurn?​

optional numSamplesPerTurn: number

Defined in: src/mobjects/biology/biologyTypes.ts:56

Samples taken per turn for each strand curve. Default: 32.


pitch?​

optional pitch: number

Defined in: src/mobjects/biology/biologyTypes.ts:34

Vertical rise of the helix per turn. Default: 1.


radius?​

optional radius: number

Defined in: src/mobjects/biology/biologyTypes.ts:32

Radius of each backbone strand. Default: 0.5.


rungColor?​

optional rungColor: string

Defined in: src/mobjects/biology/biologyTypes.ts:52

Rung color used when colorByBase is false. Default: a light gray.


sequence?​

optional sequence: BaseSymbol[]

Defined in: src/mobjects/biology/biologyTypes.ts:46

The base sequence of the first strand, from bottom to top. The second strand is the complement. If absent or shorter than basePairs, the default order A, T, G, C repeats.


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/biology/biologyTypes.ts:54

Stroke width of the strands and rungs. Default: 4.


threeD?​

optional threeD: boolean

Defined in: src/mobjects/biology/biologyTypes.ts:38

Draw the helix in 3D. Default: false (2D schematic, z = 0).


turns?​

optional turns: number

Defined in: src/mobjects/biology/biologyTypes.ts:30

Number of full turns of the helix. Default: 3.