Skip to main content

Interface: AnimatedImageMobjectOptions

Defined in: src/mobjects/image/AnimatedImageMobject.ts:11

Options for creating an AnimatedImageMobject.

Properties​

autoplay?​

optional autoplay: boolean

Defined in: src/mobjects/image/AnimatedImageMobject.ts:17

Start playing as soon as the GIF decodes. Default: false


center?​

optional center: Vector3Tuple

Defined in: src/mobjects/image/AnimatedImageMobject.ts:27

Center position [x, y, z]. Default: [0, 0, 0]


doubleSided?​

optional doubleSided: boolean

Defined in: src/mobjects/image/AnimatedImageMobject.ts:31

Render both sides of the plane. Default: false


fps?​

optional fps: number

Defined in: src/mobjects/image/AnimatedImageMobject.ts:19

Override the GIF frame rate (frames per second). Default: use GIF delays


height?​

optional height: number

Defined in: src/mobjects/image/AnimatedImageMobject.ts:23

Height of the image in scene units. Default: auto from aspect ratio


loop?​

optional loop: boolean

Defined in: src/mobjects/image/AnimatedImageMobject.ts:15

Loop back to the first frame after the last. Default: true


opacity?​

optional opacity: number

Defined in: src/mobjects/image/AnimatedImageMobject.ts:29

Opacity from 0 to 1. Default: 1


scaleToFit?​

optional scaleToFit: 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?​

optional width: number

Defined in: src/mobjects/image/AnimatedImageMobject.ts:21

Width of the image in scene units. Default: auto from aspect ratio