Help us shape the future of Go! Take the 2026 Go Developer Survey

scene

command
v0.52.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package main demonstrates the scene graph (retained mode) API for gogpu/gg.

This example shows how to:

  • Build a scene using SceneBuilder fluent API
  • Use layers with blend modes and alpha
  • Apply transforms
  • Render the scene to a Pixmap
  • Save the result to PNG

The scene graph approach is more efficient for static or slowly-changing content as it can cache rendered layers and only re-render dirty regions.

Jump to

Keyboard shortcuts

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