# fogleman/gg

Go Graphics - 2D rendering in Go with a simple API.

Repository: https://github.com/fogleman/gg
Canonical: https://ross.abutalabs.com/products/gg
Homepage: https://godoc.org/github.com/fogleman/gg
Language: Go
License: MIT
License Family: permissive
Topics: graphics, go, 2d, 2d-graphics, rendering
Last push: 2023-12-14T12:59:35+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3849, "days_push": 993, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4798, forks 384 (observed 2026-08-28T04:09:00.148055+00:00)

## What it is
Go Graphics (gg) is a pure Go library for 2D rendering with a simple, Cairo-like API for drawing shapes, paths, text, and images. It supports saving output as PNG and is widely used, with nearly 5,000 stars and over 1,900 dependent packages.

## Use cases
- generate images programmatically in Go
- draw shapes and text onto a canvas
- create charts or diagrams as PNG files
- render 2D graphics without C dependencies
- annotate or composite existing images
- generate placeholder or thumbnail images

## When to choose
- you need simple 2D drawing in pure Go with no external dependencies
- you want an easy API for shapes, paths, text, and image compositing
- you need to programmatically generate PNG images

## When to avoid
- you need GPU-accelerated or real-time rendering
- you need 3D graphics or a full game engine
- you need advanced features like SVG output or complex filters

## Facets
- artifact type: library
- maturity: maintenance
- function: graphics, image-processing
- domain: graphics, developer-tools
- platform: go, cross-platform
- tags: 2d-graphics, rendering, canvas, png, drawing, pure-go

## Member repositories
- fogleman/gg (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:00.148055+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:38.821249+00:00, confidence not recorded.
  - readme: https://github.com/fogleman/gg (fetched 2026-08-28T04:09:00.148055+00:00, sha f8453f9e97f2)
  - homepage: https://godoc.org/github.com/fogleman/gg (fetched 2026-08-29T09:01:43.604505+00:00, sha 597b459231e7)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T09:01:43.618084+00:00, sha 757852027879)
  - site_page: https://pkg.go.dev/github.com/fogleman/gg (fetched 2026-08-29T09:01:43.615025+00:00, sha 6dbeff45567f)
  - site_page: https://go.dev/project (fetched 2026-08-29T09:01:43.620413+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
