Skip to content

v0.2.0 - Modernization & Creative Coding Features

Choose a tag to compare

@h8gi h8gi released this 23 Aug 02:20
· 43 commits to master since this release
45a4348

Highlights

🚀 Modernization & Quality

  • Upgraded to modern Go modules and gopxl/pixel/v2 (v2.3.0).
  • Cross-platform GitHub Actions CI matrix for Linux, macOS, and Windows.
  • Comprehensive unit tests and GoDoc documentation.

🎨 Creative Coding & Processing-like Features

  • Perlin Noise: Built-in canvas.Noise(x, y, z), Noise2D, Noise1D, and NoiseSeed.
  • Default Font: Out-of-the-box text drawing with ctx.DrawString without explicit font setup.
  • Convenience Methods: ctx.Background(...), ctx.FillHex(...), ctx.StrokeHex(...), ctx.FillRGB(...), ctx.NoFill(), ctx.NoStroke(), and ctx.SaveFrame(...).
  • Time & Frame Tracking: ctx.FrameCount, ctx.DeltaTime, ctx.Time.
  • Math Utilities: canvas.Map, canvas.Lerp, canvas.Constrain, canvas.Dist, canvas.Random, canvas.Radians, canvas.Degrees.
  • Loop Control: c.NoLoop(), c.Loop(), c.Redraw(), c.IsLooping().
  • Window Configuration: Resizable and Fullscreen support in CanvasConfig.

🐛 Bug Fixes

  • Fixed vertical coordinate system mismatch between gg and OpenGL, resolving upside-down text rendering and aligning mouse coordinates with Processing standards (#6).