Skip to content

v0.4.0 - Processing Primitives, Vertex Paths, Gaussian Randomness & Frame Sequences

Choose a tag to compare

@h8gi h8gi released this 23 Aug 02:42
· 25 commits to master since this release
1e76886

Highlights

🔺 Shape Primitives & Custom Vertex Paths

  • Primitives: Added ctx.DrawSquare(x, y, s), ctx.DrawTriangle(...), and ctx.DrawQuad(...).
  • Custom Shapes: Added ctx.BeginShape(), ctx.Vertex(x, y), and ctx.EndShape(close bool).

🎲 Math & Vector Extensions

  • Gaussian Distribution: Added canvas.RandomGaussian(mean, stdDev) and canvas.RandomSeed(seed).
  • 2D Vector Math: Added canvas.FromAngle(rad), canvas.Random2D(), and canvas.Heading(v).
  • Pixel Sampling: Added ctx.GetPixel(x, y) and ctx.SetPixelColor(x, y, c).

🎞️ Frame Sequence Export

  • Added ctx.SaveFrameSeq("frames/frame_%04d.png") with automatic parent directory creation.