Interface: DNAHelixOptions
Defined in: src/mobjects/biology/biologyTypes.ts:28
Options for a DNAHelix.
Properties
backboneColors?
optionalbackboneColors: [string,string]
Defined in: src/mobjects/biology/biologyTypes.ts:48
The two backbone strand colors. Default: a blue and an orange.
baseColors?
optionalbaseColors:Partial<Record<BaseSymbol,string>>
Defined in: src/mobjects/biology/biologyTypes.ts:50
Per-base color overrides, merged over the default base palette.
basePairs?
optionalbasePairs:number
Defined in: src/mobjects/biology/biologyTypes.ts:36
Number of base-pair rungs. Default: 12.
colorByBase?
optionalcolorByBase:boolean
Defined in: src/mobjects/biology/biologyTypes.ts:40
Color each rung by its base. Default: true.
numSamplesPerTurn?
optionalnumSamplesPerTurn:number
Defined in: src/mobjects/biology/biologyTypes.ts:56
Samples taken per turn for each strand curve. Default: 32.
pitch?
optionalpitch:number
Defined in: src/mobjects/biology/biologyTypes.ts:34
Vertical rise of the helix per turn. Default: 1.
radius?
optionalradius:number
Defined in: src/mobjects/biology/biologyTypes.ts:32
Radius of each backbone strand. Default: 0.5.
rungColor?
optionalrungColor:string
Defined in: src/mobjects/biology/biologyTypes.ts:52
Rung color used when colorByBase is false. Default: a light gray.
sequence?
optionalsequence: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?
optionalstrokeWidth:number
Defined in: src/mobjects/biology/biologyTypes.ts:54
Stroke width of the strands and rungs. Default: 4.
threeD?
optionalthreeD:boolean
Defined in: src/mobjects/biology/biologyTypes.ts:38
Draw the helix in 3D. Default: false (2D schematic, z = 0).
turns?
optionalturns:number
Defined in: src/mobjects/biology/biologyTypes.ts:30
Number of full turns of the helix. Default: 3.