Skip to content

v0.5.0 - Animated GIF Export, Offscreen Graphics, Vector Math, FBM Noise & Easing

Latest

Choose a tag to compare

@h8gi h8gi released this 23 Aug 03:13
· 9 commits to master since this release
2924911

What's New in v0.5.0

✨ New Features

  • Animated GIF Export (RecordGIF): Automated animated GIF recording and exporting with configurable delay, loop count, and Floyd-Steinberg dithering (#24, #32).
  • Shape Primitives & Interpret Modes: Added DrawPolygon, DrawStar, DrawSector, DrawCenteredRectangle, DrawCenteredSquare, RectMode, and EllipseMode support (#25, #33).
  • 2D Vector Math Helpers: Intuitive vector operations including VecAdd, VecSub, VecMult, VecDiv, VecMag, VecNormalize, VecLimit, VecSetMag, VecDist, VecDot, VecCross, VecRotate, VecAngleBetween, and VecLerp (#26, #34).
  • FBM Noise & Animation Easings: Multi-octave Fractal Brownian Motion (NoiseFBM, NoiseFBM3D, NoiseFBM1D) and 27 standard animation easing functions in easing.go (#27, #35).
  • Offscreen Graphics Buffers: Independent drawing contexts via CreateGraphics / NewGraphics and layer blitting with DrawGraphics / DrawGraphicsAnchored (#28, #36).
  • Mouse Scroll & Window Resizing: Trackpad/mouse wheel scrolling (ctx.MouseScroll, c.MouseScrolled) and dynamic window resizing events (c.WindowResized) (#29, #37).

⚡ Performance

  • Added BenchmarkFlipV verifying zero heap allocations and ~25.3 GB/s throughput (~0.32 ms for full HD 1080p frame) (#30, #38).

🎨 Examples & Documentation

  • Added examples/gif-export: Automated animated GIF recording and exporting demo.
  • Added examples/boids: Craig Reynolds' flocking simulation using vector math.
  • Added examples/particle-system: Physics-based particle fountain with quadratic/cubic easings and offscreen trail layer.
  • Added examples/fractal-tree: Organic branching tree animated with 1D Perlin noise wind sway.
  • Updated README.md documentation and examples index.