API reference

aster_blueprint::fx_nodes

Pre-1.0: signatures are not frozen. Generated from rustdoc JSON of the compiled crate; rustdoc JSON format version 60. Only public items are listed.

Typed graph nodes for the immersive layers (core.drawing.*_gradient.v1, particles, vignette, spotlight): the same deterministic kernels the terse UI layer uses, as pure Drawing producers.

Each node is Visual/Pure with one value: Drawing output. Time is an explicit Seconds input (wire core.clock.v1 into it) rather than hidden state, so a node is a function of its inputs: the same inputs give the same recording, and a graph that never reads the clock stays static. Pictures are baked at the scale input (default 1) and drawn 1:1 in device pixels, like the effect kernels; corner radius clips the picture.

Enums

enumaster_blueprint::fx_nodes::FxKind

pub enum FxKind { ConicGradient, MeshGradient, FlowGradient, Particles, Vignette, Spotlight, Tilt, Glass, Transition, LightShafts, LensFlare, Distort, Hologram, Kinetic }

The immersive kernels. Names and ports are the single source of truth for both the catalog definitions and the runtime signature check.

Methods

  • const ALL: [FxKind; 14]
  • fn name(self) -> &'static str
  • fn from_name(name: &str) -> Option<Self>
  • fn inputs(self) -> &'static [Port]
  • fn evaluate(self, args: &[RuntimeValue]) -> Result<Recording, Error> — Evaluate against already type-admitted inputs (declared port order). A shape mismatch is Error::InvalidGeometry, never a fixup.

Variants

  • ConicGradient
  • MeshGradient
  • FlowGradient
  • Particles
  • Vignette
  • Spotlight
  • Tilt — Perspective-warp a source Drawing like .tilt(..) (a picture in, a picture out).
  • Glass — Frost a backdrop Drawing behind a panel like .glass(..).
  • Transition — Composite from against to at progress like ui::Cut (mode 0 dissolve, 1 wipe, 2 iris open, 3 iris close, 4 pixelate, 5 push).
  • LightShafts — Volumetric light shafts from an occluder Drawing's silhouette (like light_shafts(..)).
  • LensFlare — Lens flare: core, anamorphic streak, ghost rings and hexagonal bokeh (like lens_flare(..)).
  • Distort — Shockwave / haze / chromatic aberration / glitch of a source Drawing like .distort(..).
  • Hologram — Scanlines, flicker and barrel curve of a source Drawing like .hologram(..).
  • Kinetic — Reveal a source Drawing (text) glyph by glyph like .kinetic(..).

Trait implementations: Clone, Copy, Debug, Eq, PartialEq, StructuralPartialEq