Skip to contents

The studio guide for mascot_preview(). The same page is read in the mascot studio.

Try it live. The mascot studio shows this function with live controls and the generated code. In an R session with the optional packages bslib and knitr installed, run:
mascot::mascot_studio(fn = "mascot_preview")
It opens on this function's guide; change a control and watch the mascot.
Experimental Its purpose, arguments and page layout may change in a later release.

Offline comparison

mascot_preview() draws your character offline across light and dark modes, comparing your chosen size with 160, 96 and 24 px columns. Previews are always inline and accept no placement or click arguments.

Warnings, errors and common mistakes

mascot_preview(size = 10)
Error: could not find function "mascot_preview"