Skip to content
@go-gfx

go-gfx

go-gfx

go-gfx

🌐 Website · 📚 Documentation

License Website Docs Pure Go

The pure-Go, CGO=0 2D graphics foundation — the shared substrate that sits below the fleet's image-processing and rendering libraries. The Go answer to what Skia, Cairo and image/draw provide elsewhere: pixel buffers, colour science, high-quality resampling, image codecs and a vector rasterizer, each usable on its own, with no third-party dependencies.

go-gfx is not an image-processing library (that is go-images, the scikit-image analogue) and not a widget toolkit (that is go-widgets). It is the common layer both stand on, so colour blending, resampling, codecs and path rasterization are written and tested once and shared across the whole ecosystem.

Repositories

Repo What it is
gfx the library: geometry · color · raster · resample · codec · vector in one CGO=0 module
qr a QR Code encoder (ISO/IEC 18004) that returns a module matrix, not a picture: the caller paints it as a widget, an SVG or a bitmap. The encoder imports nothing outside the standard library; an optional Image/PNG helper uses only image and image/png
docs MkDocs Material documentation, served at /docs/
go-gfx.github.io the Hugo landing page
brand brand assets — logos & icons

Packages

Package Purpose
geometry points, rectangles, affine transforms
color RGB/XYZ/Lab, sRGB↔linear, premultiplied alpha, blend modes
raster shared pixel-buffer / pixel-format substrate
resample box/area, bicubic (Catmull-Rom), Lanczos resizing
codec PNG, JPEG, WebP, ICO, ICNS, GIF, TIFF decoders/encoders
vector paths, anti-aliased rasterizer, strokes, gradients

Consumers

  • go-images — image processing, on raster/color/resample.
  • go-widgets/painter — tri-backend renderer, on vector/raster/color.
  • go-webengine — HTML/CSS → image, on resample/codec/vector.
  • go-widgets/desktop — icon & thumbnail rendering.

Principles

  • Pure Go, CGO_ENABLED=0. No Skia, no Cairo, no native shims.
  • Zero third-party dependencies. Nothing fleet-side except go-asmgen for optional SIMD, pulled in only at code-generation time so the library keeps a zero-dependency go.mod.
  • 100% test coverage, including error branches, gated in CI.
  • Six architectures. Build + test on all six of Go's 64-bit targets — amd64 / arm64 natively, loong64 / riscv64 / ppc64le / s390x under qemu.
  • BSD-3-Clause on every source file.

Status

Bootstrapping. The module skeleton is up; packages land incrementally, starting with resample, raster and color. See the roadmap.

Popular repositories Loading

  1. gfx gfx Public

    Pure-Go CGO=0 2D graphics foundation: geometry, color, raster buffers, high-quality resampling, image codecs, and vector rasterization. Shared substrate under go-images, go-widgets/painter, go-webe…

    Go 1

  2. brand brand Public

  3. .github .github Public

    JavaScript

  4. docs docs Public

  5. go-gfx.github.io go-gfx.github.io Public

    HTML

  6. qr qr Public

    Pure-Go CGO-free QR Code (ISO/IEC 18004) encoder producing a module matrix the caller renders

    Go

Repositories

Showing 10 of 11 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…