Colors. Lines.

This commit is contained in:
2025-12-20 10:58:38 -05:00
parent 3bf2a7b429
commit c9e1eda4d3
4 changed files with 23 additions and 12 deletions

View File

@@ -32,6 +32,9 @@ void tri_destroy(Tri* tri);
// Check if a point is within the triangle. Uses barycentric coordinate system.
bool tri_within(Pt pt, Tri* tri);
// Get the center point of a Tri.
Pt tri_center(Tri* tri);
typedef struct {
Color col;
size_t ntris;