Interface: DNAHelixOptions
Defined in: src/mobjects/biology/biologyTypes.ts:34
Options for a DNAHelix.
Properties
backboneColors?
optionalbackboneColors: [string,string]
Defined in: src/mobjects/biology/biologyTypes.ts:54
The two backbone strand colors. Default: a blue and an orange.
backboneStrokeWidth?
optionalbackboneStrokeWidth:number
Defined in: src/mobjects/biology/biologyTypes.ts:81
Stroke width of the two backbone strands. Default: the strokeWidth.
baseColors?
optionalbaseColors:Partial<Record<BaseSymbol,string>>
Defined in: src/mobjects/biology/biologyTypes.ts:56
Per-base color overrides, merged over the default base palette.
baseGap?
optionalbaseGap: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?
optionalbasePairs:number
Defined in: src/mobjects/biology/biologyTypes.ts:42
Number of base-pair rungs. Default: 12.
colorByBase?
optionalcolorByBase:boolean
Defined in: src/mobjects/biology/biologyTypes.ts:46
Color each rung by its base. Default: true.
depthCue?
optionaldepthCue: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?
optionalhBondColor:string
Defined in: src/mobjects/biology/biologyTypes.ts:60
Color of the hydrogen-bond markers in the center. Default: a neutral gray.
nucleotideRadius?
optionalnucleotideRadius:number
Defined in: src/mobjects/biology/biologyTypes.ts:79
Radius of each nucleotide bead. Default: 0.14 * radius.
numSamplesPerTurn?
optionalnumSamplesPerTurn:number
Defined in: src/mobjects/biology/biologyTypes.ts:70
Samples taken per turn for each strand curve. Default: 48.
pitch?
optionalpitch:number
Defined in: src/mobjects/biology/biologyTypes.ts:40
Vertical rise of the helix per turn. Default: 1.
radius?
optionalradius:number
Defined in: src/mobjects/biology/biologyTypes.ts:38
Radius of each backbone strand. Default: 0.5.
rungColor?
optionalrungColor:string
Defined in: src/mobjects/biology/biologyTypes.ts:58
Rung color used when colorByBase is false. Default: a light gray.
sequence?
optionalsequence: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?
optionalshowNucleotides:boolean
Defined in: src/mobjects/biology/biologyTypes.ts:77
Draw a nucleotide bead where each rung meets a backbone. Default: true.
strokeWidth?
optionalstrokeWidth:number
Defined in: src/mobjects/biology/biologyTypes.ts:68
Stroke width of the strands and rungs. Default: 4.
threeD?
optionalthreeD:boolean
Defined in: src/mobjects/biology/biologyTypes.ts:44
Draw the helix in 3D. Default: false (2D schematic, z = 0).
turns?
optionalturns:number
Defined in: src/mobjects/biology/biologyTypes.ts:36
Number of full turns of the helix. Default: 3.