# llgcode/draw2d

2D rendering for different output (raster, pdf, svg)

Repository: https://github.com/llgcode/draw2d
Canonical: https://ross.abutalabs.com/products/draw2d
Language: Go
License: BSD-2-Clause
License Family: permissive
Topics: go, 2d, graphics, postscript, freetype, draw2d
Last push: 2026-04-22T08:10:35+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 78, release rhythm 35, longevity 100
- inputs: {"age_days": 4191, "days_push": 133, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1166, forks 106 (observed 2026-08-28T04:03:50.146788+00:00)

## What it is
draw2d is a Go 2D vector graphics library supporting multiple output backends including raster images, PDF documents, OpenGL, and SVG. It follows HTML Canvas 2D Context conventions and supports paths, curves, text rendering with truetype fonts, and affine transformations.

## Use cases
- generate png images from vector drawings in go
- create pdf documents programmatically with the same drawing code
- render svg graphics from go code
- draw polygons bezier curves and arcs in go
- render text with truetype fonts onto images
- convert postscript files to images or pdf

## When to choose
- you need one drawing codebase to target raster, pdf, and svg outputs
- you want a canvas-like 2d drawing api in go
- you need to generate charts, diagrams, or vector artwork as files

## When to avoid
- you need gpu-accelerated interactive 2d rendering as the primary use case
- you need a full gui toolkit or scene graph
- your project is not written in go

## Facets
- artifact type: library
- maturity: active
- function: graphics, image-processing, pdf, serialization
- domain: graphics, web-development, developer-tools
- platform: go, cross-platform
- tags: 2d-graphics, vector-graphics, svg, canvas-api, truetype-fonts, postscript, opengl

## Member repositories
- llgcode/draw2d (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:50.146788+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-30T06:28:59.463758+00:00, confidence not recorded.
  - readme: https://github.com/llgcode/draw2d (fetched 2026-08-28T04:03:50.146788+00:00, sha a52599291a58)
- Data as of 2026-08-30T08:39:29.467469+00:00.
