Ruby port of the http://natureofcode.com
Ruby Java
Pull request Compare This branch is 128 commits ahead, 1 commit behind pierre-pat:master.
Latest commit c5b9160 Jan 12, 2017 @monkstone monkstone committed on GitHub Update README.md

README.md

The-Nature-of-Code-Examples-in-Ruby

IMPORTANT SINCE 2017 RUBY-PROCESSING HAS BEEN SUPERSEDED BY JRUBY_ART AND PROPANE

A ruby port of the examples from The Nature of Code by Daniel Shiffman. In this fork PVector has been replaced by Vec2D, Vec3D or a lighweight alternative. Processing map has been replaced by ruby-processings map1d.

Although many of the sketches here stand on their own merit, you should remember that they were originally designed to illustrate the book (so to get the most from them you should definetly get the book). Since the sketches have been translated to a more idiomatic ruby, some of the sketches may not exactly match the points made in the book. However such sketches do serve to demonstrate the differences between processing and ruby-processing. Since the book is now also available in Japanese it would be great if someone would fork this and add Japanese annotations. For the most part the code is just ruby and processing, but see glossary for some convenience methods unique to ruby-processing (eg load_library and clip).

Tested versions

ruby 2.1 (note syntax clamped to 1.9.3 for jruby)

jruby-1.7.16.1

ruby-processing gem version 2.6.4

pbox2d gem version 0.3.0