Skip to main content

Interface: DNAHelixOptions

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

Options for a DNAHelix.

Properties​

backboneColors?​

optional backboneColors: [string, string]

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

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


backboneStrokeWidth?​

optional backboneStrokeWidth: number

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

Stroke width of the two backbone strands. Default: the strokeWidth.


baseColors?​

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

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

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


baseGap?​

optional baseGap: number

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

Fraction of the rung length left open in the center for the hydrogen bonds, in [0, 1). The two nucleobase halves leave this gap between them. Default: 0.3.


basePairs?​

optional basePairs: number

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

Number of base-pair rungs. Default: 12.


colorByBase?​

optional colorByBase: boolean

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

Color each rung by its base. Default: true.


depthCue?​

optional depthCue: boolean

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

Fake 3D depth by dimming and thinning the rungs and nucleotides that sit at the back of each turn. Default: true.


hBondColor?​

optional hBondColor: string

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

Color of the hydrogen-bond markers in the center. Default: a neutral gray.


nucleotideRadius?​

optional nucleotideRadius: number

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

Radius of each nucleotide bead. Default: 0.14 * radius.


numSamplesPerTurn?​

optional numSamplesPerTurn: number

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

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


pitch?​

optional pitch: number

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

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


radius?​

optional radius: number

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

Radius of each backbone strand. Default: 0.5.


rungColor?​

optional rungColor: string

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

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


sequence?​

optional sequence: BaseSymbol[]

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

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.


showNucleotides?​

optional showNucleotides: boolean

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

Draw a nucleotide bead where each rung meets a backbone. Default: true.


strokeWidth?​

optional strokeWidth: number

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

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


threeD?​

optional threeD: boolean

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

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


turns?​

optional turns: number

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

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