Skip to main content

Function: setTheme()

setTheme(name, options): void

Defined in: src/utils/ThemeManager.ts:113

Select the active theme by name.

Changes the defaults read by new mobjects and new scenes. When options.scene is given (and options.reskin is not false), the scene's background and every mobject's stroke/fill color are updated immediately.

Parameters​

name​

string

A registered theme name.

options​

SetThemeOptions = {}

Optional scene to re-skin and re-skin toggle.

Returns​

void

Throws​

If name is not a registered theme.