What is 2D Graphics Programming? 2D Graphics Programming is the art of making 2D graphics not look terrible.
Why Bother? With 2D graphics programming, you can make games, animations, and art that don't crash, don't glitch, and don't make your eyes bleed.
Key Concepts:
Coordinates
Graphics Math
Transformations
What's the Point? Coordinates are the points on a 2D plane that define where stuff is. Like, literally where stuff is.
Coordinate Systems:
Cartesian (x, y)
Isometric (dx, dy)
Screen (x, y, z)
The Math Behind the Magic 2D graphics programming is all about math, and not the fun kind.
Algorithms:
Sorting (Quicksort, Mergesort)
Graph Drawing (Barycentric, Voronoi)
Move, Rotate, Scale Transformations are the secret to making your 2D graphics not look like a mess.
Transformations:
Translation (Move)
Rotation (Rotate)
Scaling (Scale)
That's it! You've made it to the end of this 2D Protocol Cheat Sheet. Now go forth and create some tolerable 2D graphics!