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.
Click to show internal directories.
Click to hide internal directories.