Your system asks for reduced motion, so VFX-JS draws nothing. Demos on this site show plain HTML.

Type

HoloParams

effects/src/holo.ts:272 ↗
import type { HoloParams } from "@vfx-js/effects";

HoloEffect's params, as effect.params holds them.

Properties

antialias

antialias: boolean

Smooth the edges of the card with 4× multisampling (MSAA) of the card target (half float), as holospot renders; the outline shows once the card turns. Default true; false saves memory (about 5× the card target's).

flat

flat: boolean

Keep the card flat (default false). Both are scenes holospot can draw.

  • false: the card turns with the pose, seen by holospot's camera (lens). The output grows by about 21 % of the element's size on each side, so the tilted card and its glare fit (holospot's framing: the card at rest fills 70 % of the view, exactly the element's rect).
  • true: the card stays facing the viewer, exactly where the element is, and the pose (pointer tilt, wobble, pose) turns the light rig the other way instead, as holospot's light-rig rotation does. The light meets the card as if it were tilted; the view does not change, so the rainbows travel about half as far.

holo

holo: HoloSettingsInput | readonly HoloSettingsInput[]

The holo.spot side: a holo.spot "Copy settings" blob, holo.spot settings with the kit's options, or a list of them applied in order over holo.spot's parameter defaults (later values win, settings merge by id, a blob starts the settings over). Set it to a new value (not changed in place) to change the scene. Default [].

ink

ink: number

How much the element's colour tints the foil as a translucent ink, in [0, 1]. 0: bare foil (default). All materials but emboss, whose element is printed on the paper instead (emboss.printInk).

sizeMm

sizeMm: number | null

Physical size of the element's largest side in mm (the foil has a real grain). null (or a value that is not a positive number): the element's CSS size at 96 dpi (1 px = 0.2646 mm). Default null.

sourceChannel

sourceChannel: HoloSourceChannel

Which channel of the element is read as the foil's shape: "alpha" (where it is opaque; default), "luminance" (where it is bright; the element shows where there is no foil) or "none" (the whole element rect). For emboss, whose paper is the whole card, it is how the logo image is read instead: "alpha" (holospot's: its alpha, or an opaque image's contrast against its border) or "luminance".