🕷 software releases

by ryan davis


graphics version 1.0.0b5 has been released!

Published 2015-11-17 @ 16:00

Graphics provides a simple framework to implement games and/or simulations and is designed to follow mathematical conventions, NOT game programming conventions. Particularly it:

  • Uses degrees.
  • Draws in quadrant 1 (0-90 degrees).
  • Right hand rule: 0 degrees is east, 90 is north, etc.

These allow simple things like Trigonometry functions to work as expected. It means that all that stuff you were taught it grade school still work as intended. This makes one less thing you have to adjust when implementing your simulation.


1.0.0b5 / 2015-10-31

  • 10 minor enhancements:

    • Added Simulation#add_keydown_handler.
    • Added Simulation#keydown_handler, a hash of “key” -> block handlers.
    • Added logging every N ticks for headless simulations or debugging.
    • Switched all default key handlers to keydown handlers.
    • add example: visualization of pi computation
    • Improved key event handling.
    • add example: visualization of pi computation
    • Renamed rubysdl_setup to graphics_setup. rubysdl is out of the picture.
    • Added example rainbow fluid simulation. (litonico)
    • Added rainbows in greyscale, rgb-spectrum, and cubehelix. (litonico)
  • 2 bug fixes:

    • Fixed build issues with rubygems.
    • Switched brew install to build universal packages so it can work with stock ruby.
  • home: https://github.com/zenspider/graphics
  • rdoc: http://docs.seattlerb.org/graphics