π¨ The Ruby 2D gem
Quick point release here to fix a missing header file for Windows (thanks @UalaceCafe). We also updated our CI (switching to GitHub Actions) to test a release build and install on macOS, Linux, and Windows, which will help us catch issues like this in the future.
π¨This release introduces the Canvas
class. Similar to a bitmap, you can paint on it with shapes and images. Each time you draw, the pixels of the underlying canvas texture are changed directly β there are no Ruby objects being created like with other Ruby 2D drawing classes. This will be especially useful if you need to draw many things, but don't really care about holding on to their references (although you can certainly create them if you like). We don't have formal documentation written up just yet, but check out the examples in test/canvas*.rb
and try them out. This feature was largely implemented by @nogginly β thanks and great work!
There are also a few other updates with this release:
rake
will build the gem and link to user-installed dependency libraries. Use rake release
to bundle dependencies with the gem for release. (#247)Enjoy! π
π Adds support for MinGW UCRT. RubyInstaller 3.1 introduced a new C-runtime called UCRT, which replaces MSVCRT to bring better compatibility to C standards and libraries compiled with Microsoft Visual Studio. This Ruby 2D version is now compatible with both MSYS2 environments, MINGW64 (RubyInstaller 3.0.3 and earlier) and UCRT (RubyInstaller 3.1.0 and later).
π Small fix for Apple Silicon / M1 Macs (arm64). Resolves the Symbol not found '_ModPlug_GetSettings'
error.
Sound
(#170) β Thanks @tlrasor!.r
/.g
/.b
/.a
shortcuts to .color
(#206) β Thanks @collindonnell!.length
of audio files (#198 by @mariovisic)Fixes macOS Catalina issue where OpenGL viewport does not fill the window.