agentleFS
gogpugogpu/gg/llms.txt

gg

llms.txt173 starsChanged 8 days agoMITView on GitHub

Pure Go 2D graphics library: immediate-mode drawing (paths, shapes, strokes, gradients, images, text) on a CPU rasterizer core, with optional GPU acceleration through gogpu/wgpu (in a gogpu app: the backend gogpu picks, e.g. Vulkan, DX12, Metal, GLES; standalone: Vulkan, and Metal on macOS). The API has two styles over one context: stateful (SetColor, Fill) and per-call paint. Also: a retained scene graph, 29 blend modes, layers and alpha masks, a Pure Go font stack (TrueType and CFF, variable fonts, OpenType…

  • In this repositoryOne other file it gives its agents.

The file

Files
llms.txt
# gg

> Pure Go 2D graphics library: immediate-mode drawing (paths, shapes, strokes, gradients, images, text) on a CPU
> rasterizer core, with optional GPU acceleration through gogpu/wgpu (in a gogpu app: the backend gogpu picks, e.g.
> Vulkan, DX12, Metal, GLES; standalone: Vulkan, and Metal on macOS). The API
> has two styles over one context: stateful (`SetColor`, `Fill`) and per-call paint. Also: a retained scene graph,
> 29 blend modes, layers and alpha masks, a Pure Go font stack (TrueType and CFF, variable fonts, OpenType shaping,
> hinting, MSDF and glyph-mask GPU text), an SVG renderer, and a recording system for PDF/SVG export. CPU rendering
> needs no GPU; `import _ "github.com/gogpu/gg/gpu"` turns on the GPU accelerator. Go 1.25+, zero CGO. Pre-1.0: the
> API may change before v1.0.

## Docs

- [API Reference](https://pkg.go.dev/github.com/gogpu/gg): package documentation
- [README](https://github.com/gogpu/gg/blob/main/README.md): overview, install, quick start
- [AGENTS.md](https://github.com/gogpu/gg/blob/main/AGENTS.md): instructions for AI agents using gg
- [ARCHITECTURE](https://github.com/gogpu/gg/blob/main/docs/ARCHITECTURE.md): CPU core, GPU accelerator tiers, text and scene pipelines
- [CHANGELOG](https://github.com/gogpu/gg/blob/main/CHANGELOG.md): release history
- [ROADMAP](https://github.com/gogpu/gg/blob/main/ROADMAP.md): plans toward v1.0
- [CONTRIBUTING](https://github.com/gogpu/gg/blob/main/CONTRIBUTING.md): how to contribute

## Packages

- [gg](https://pkg.go.dev/github.com/gogpu/gg): drawing context, paths, paint, pixmaps
- [gg/text](https://pkg.go.dev/github.com/gogpu/gg/text): fonts, shaping, layout
- [gg/scene](https://pkg.go.dev/github.com/gogpu/gg/scene): retained-mode scene graph
- [gg/svg](https://pkg.go.dev/github.com/gogpu/gg/svg): SVG parsing and rendering
- [gg/recording](https://pkg.go.dev/github.com/gogpu/gg/recording): command recording for vector export
- [gg/gpu](https://pkg.go.dev/github.com/gogpu/gg/gpu): opt-in GPU accelerator registration
- [gg/integration/ggcanvas](https://pkg.go.dev/github.com/gogpu/gg/integration/ggcanvas): drawing into a gogpu window

## Examples

- [examples](https://github.com/gogpu/gg/tree/main/examples): all examples
- [basic](https://github.com/gogpu/gg/tree/main/examples/basic): shapes on the CPU, saved to PNG
- [text](https://github.com/gogpu/gg/tree/main/examples/text): font loading and text rendering
- [gogpu_integration](https://github.com/gogpu/gg/tree/main/examples/gogpu_integration): GPU-accelerated drawing in a gogpu window

## Related

- [gg-pdf](https://github.com/gogpu/gg-pdf): PDF export backend for gg/recording
- [gg-svg](https://github.com/gogpu/gg-svg): SVG export backend for gg/recording

## Ecosystem

- [GoGPU ecosystem](https://gogpu.dev/llms.txt): map of all modules
- [Open Collective](https://opencollective.com/gogpu): support development

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.