# tsoding/olive.c

Simple 2D Graphics Library for C

Repository: https://github.com/tsoding/olive.c
Canonical: https://ross.abutalabs.com/products/olivec
Homepage: https://tsoding.github.io/olive.c/
Language: C++
License: MIT
License Family: permissive
Last push: 2025-09-27T08:21:30+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 44, release rhythm 35, longevity 100
- inputs: {"age_days": 1468, "days_push": 340, "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 2444, forks 134 (observed 2026-08-28T04:06:52.482064+00:00)

## What it is
Olive.c is a dependency-free, stb-style single-header 2D graphics library for C that renders pixel by pixel into a memory buffer. It provides drawing primitives like shapes, text, and textures, leaving display of the resulting pixels up to the user.

## Use cases
- render 2D graphics in C without dependencies
- draw shapes and text into a pixel buffer
- generate images programmatically in C
- software-render 3D models on CPU
- embed simple graphics rendering in a C project via copy-paste header

## When to choose
- you need a tiny, zero-dependency graphics library you can copy-paste into a C project
- you want CPU-based software rendering without GPU APIs like OpenGL
- you prefer stb-style single-header libraries

## When to avoid
- you need GPU-accelerated rendering or high-performance graphics
- you need the library to handle windowing or displaying images
- you require a stable API - the library is a work in progress and can change at any time

## Facets
- artifact type: library
- maturity: experimental
- function: graphics, image-processing
- domain: graphics, cross-platform
- platform: cpp, c, cross-platform, wasm
- tags: single-header, stb-style, software-rendering, pixel-rendering, no-dependencies, 2d-graphics, 3d-rendering, game-development

## Member repositories
- tsoding/olive.c (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:52.482064+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-30T02:30:35.096023+00:00, confidence not recorded.
  - readme: https://github.com/tsoding/olive.c (fetched 2026-08-28T04:06:52.482064+00:00, sha dc6908ea547b)
  - homepage: https://tsoding.github.io/olive.c/ (fetched 2026-08-29T10:11:51.244406+00:00, sha dc80ae53d298)
- Data as of 2026-08-30T08:39:29.467469+00:00.
