done converting coordinates to triangles for exporting (but I still need header and footer for that)

This commit is contained in:
2025-07-12 19:00:24 +01:00
parent 1fb6b43ac3
commit 9a748c8e0d
3 changed files with 16 additions and 8 deletions

View File

@@ -553,7 +553,15 @@ struct
, ") - halfHeight) / halfHeight)"
]
in
x :: y :: ex :: ex :: y :: ey :: r :: g :: b :: acc
(* based on triangle order formed by `Ndc.ltrbToVertexRgb` function *)
x :: ey :: r :: g :: b ::
ex :: ey :: r :: g :: b ::
x :: y :: r :: g :: b ::
x :: y :: r :: g :: b ::
ex :: ey :: r :: g :: b ::
ex :: y :: r :: g :: b ::
acc
end
fun toExportString (squares, canvasWidth, canvasHeight) =