# ggambetta/computer-graphics-from-scratch

Text, diagrams, and source code for the book Computer Graphics from scratch.

Repository: https://github.com/ggambetta/computer-graphics-from-scratch
Canonical: https://ross.abutalabs.com/products/computer-graphics-from-scratch
Homepage: http://gabrielgambetta.com/computer-graphics-from-scratch
License: NOASSERTION
License Family: other
Last push: 2025-09-13T14:38:00+00:00

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

## Adoption (not part of the score)
Stars 1310, forks 120 (observed 2026-08-28T04:04:19.850262+00:00)

## What it is
The text, diagrams, demos, and source code for the book 'Computer Graphics from Scratch' by Gabriel Gambetta, published by No Starch Press. It teaches raytracing and rasterization algorithms from first principles using language-agnostic pseudocode with no external libraries.

## Use cases
- learn computer graphics fundamentals from scratch
- understand how raytracing works
- learn rasterization and triangle rendering algorithms
- implement a raytracer without external libraries
- study perspective projection and clipping
- find an introductory computer graphics book with interactive demos

## When to choose
- you want to learn graphics algorithms from first principles with minimal math prerequisites
- you prefer language-agnostic pseudocode over framework-specific tutorials
- you want a structured book covering both raytracing and rasterization

## When to avoid
- you need production-ready graphics code or a reusable library
- you want GPU/shader programming or OpenGL/Vulkan/WebGPU tutorials
- you need advanced topics like physically-based rendering or global illumination

## Facets
- artifact type: learning-resource
- maturity: stable
- function: graphics, simulation, documentation
- domain: graphics, education, tutorials
- platform: cross-platform
- tags: book, raytracing, rasterization, computer-graphics, pseudocode, no-starch-press

## Member repositories
- ggambetta/computer-graphics-from-scratch (main) score 51

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:19.850262+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-30T04:49:55.135344+00:00, confidence not recorded.
  - readme: https://github.com/ggambetta/computer-graphics-from-scratch (fetched 2026-08-28T04:04:19.850262+00:00, sha 20dc231028fd)
  - homepage: http://gabrielgambetta.com/computer-graphics-from-scratch (fetched 2026-08-29T12:08:23.453551+00:00, sha 151d8b7a5d7a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
