/GP100L

Graphics Programming in 100 Lines

Primary LanguagePythonMIT LicenseMIT

GP100L

Graphics Programming in 100 Lines

Contents

  • Ray tracing (110 lines)
  • Path tracing (100 lines)
  • Particle-based fluid (100 lines)
  • Grid-based fluid (110 lines)
  • Half-edge (120 lines)
  • Catmull-Clark subdivision (180 lines)
  • Bezier curve (70 lines)
  • Perlin noise (100 lines)
  • Poisson disk sampling (40 lines)
  • Voronoi (50 lines)
  • Inverse kinematics (60 lines)
  • Sphere-capsule collision (70 lines)
  • Convex hull (100 lines)
  • Minkowski sum (100 lines)
  • Digital differential analyzer (50 lines)
  • Bezier DDA (110 lines)
  • Jump flood algorithm (90 lines)

Getting started

git clone https://github.com/yknishidate/GP100L.git

pip install taichi

Library

  • Taichi - Productive & portable high-performance programming in Python.