raster

package
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package raster renders scene v1 with no I/O, global mutable state or frame goroutines.

Index

Constants

View Source
const Version = "onair-raster-4-static-detail-175"

Variables

This section is empty.

Functions

func Render

func Render(doc scene.Document, bindings Bindings, t float64, w, h int) *image.RGBA

func Silhouette

func Silhouette(src image.Image) image.Image

Silhouette prepares a monochrome alpha mask once, before rasterization. Transparent artwork uses its alpha. Opaque artwork uses luminance, inverted for a light backing (sampled from the corner).

Types

type Bindings

type Bindings struct {
	scene.Bindings
	Assets map[string]image.Image    `json:"-"`
	Fonts  map[string]*opentype.Font `json:"-"`
}

Bindings keeps decoded artwork outside the document; images are immutable during a job.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL