Interface: AnimatedImageMobjectOptions
Defined in: src/mobjects/image/AnimatedImageMobject.ts:11
Options for creating an AnimatedImageMobject.
Properties
autoplay?
optionalautoplay:boolean
Defined in: src/mobjects/image/AnimatedImageMobject.ts:17
Start playing as soon as the GIF decodes. Default: false
center?
optionalcenter:Vector3Tuple
Defined in: src/mobjects/image/AnimatedImageMobject.ts:27
Center position [x, y, z]. Default: [0, 0, 0]
doubleSided?
optionaldoubleSided:boolean
Defined in: src/mobjects/image/AnimatedImageMobject.ts:31
Render both sides of the plane. Default: false
fps?
optionalfps:number
Defined in: src/mobjects/image/AnimatedImageMobject.ts:19
Override the GIF frame rate (frames per second). Default: use GIF delays
height?
optionalheight:number
Defined in: src/mobjects/image/AnimatedImageMobject.ts:23
Height of the image in scene units. Default: auto from aspect ratio
loop?
optionalloop:boolean
Defined in: src/mobjects/image/AnimatedImageMobject.ts:15
Loop back to the first frame after the last. Default: true
opacity?
optionalopacity:number
Defined in: src/mobjects/image/AnimatedImageMobject.ts:29
Opacity from 0 to 1. Default: 1
scaleToFit?
optionalscaleToFit:boolean
Defined in: src/mobjects/image/AnimatedImageMobject.ts:25
If both width and height given, fit inside the box preserving aspect. Default: true
source
source:
string
Defined in: src/mobjects/image/AnimatedImageMobject.ts:13
GIF source: URL or base64 data URI. Required.
width?
optionalwidth:number
Defined in: src/mobjects/image/AnimatedImageMobject.ts:21
Width of the image in scene units. Default: auto from aspect ratio