Skip to main content

Interface: AminoAcidChainOptions

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

Options for an AminoAcidChain.

Properties​

beadRadius?​

optional beadRadius: number

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

Radius of each residue bead. Default: 0.25.


bondColor?​

optional bondColor: string

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

Color of the peptide bond lines. Default: white.


colors?​

optional colors: Record<string, string>

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

Per-code color overrides, merged over the residue palette.


labelFontSize?​

optional labelFontSize: number

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

Font size for the labels. Default: 18.


labels?​

optional labels: boolean

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

Draw a label on each bead. Default: true.


residues​

residues: string[]

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

The residue codes or names, from the N terminus to the C terminus.


spacing?​

optional spacing: number

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

Distance between adjacent bead centers. Default: 0.7.


strokeWidth?​

optional strokeWidth: number

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

Stroke width of the bonds and bead outlines. Default: 4.


zigzag?​

optional zigzag: boolean

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

Lay the chain out as a zigzag. Default: true (false draws a straight row).