output

command
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Example: Output layer.

Demonstrates the unified output layer added in OUTPUT-SPEC.md Phases 1–5:

  • file.Save — file export (PNG / SVG / PDF) via the "file" surface
  • oimg.Render — render to an in-memory image.Image
  • file.Encode — stream encoded bytes to any io.Writer
  • output.NewSurface + output.Render — the low-level Surface API

The built-in "file" and "image" surfaces are auto-registered by importing the ggplot package, so no blank import is needed here. A live desktop window (output/window.Show) needs a display and is shown as a comment at the end.

Jump to

Keyboard shortcuts

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