Hype Library Examples5
5A vanilla processing library download here yourself. You could even use a polyglot maven (see pom.rb) to build the jar, use a local processing core.jar if you want the latest version. I’ve put SNAPSHOT in version because library claims to be under heavy development (the commit history would argue otherwise).
Here is an index of my blogposts about using the Hype processing framework by Joshua Davis in JRubyArt. The code examples are included with the JRubyArt examples.
-
Here we are reminded that we cannot use naked web-color strings in JRubyArt (in vanilla processing these get pre-processed anyway). Further vanilla processing (and java) use signed
int
(incompatible with ruby Fixnum) which is why we usefill(color('#242424'))
forfill(#242424)
see alternatives -
This sketch shows how you can use the magic of JRuby to replace anonymous callbacks with a block.
-
This sketch shows you a neat method to initialize a palette of
web-colors
(that Joshua Davis is sure keen on hisweb-colors
), also introduces theHTimer
class (but I’m not sure that it is either required or actually gets used in this sketch). -
This sketch is another example showing how you can use the magic of JRuby to replace anonymous callbacks with a block. Even when those callbacks are nested, as in this sketch. The sketch also features the use of the
HTimer
class. -
This sketch features use of the
HBundle
,HOrbiter3D
andHSphere
classes. -
This sketch features a callback on the
HRandomTrigger
class from the hype library. Also includes a guide to using of the newweb_to_color_array
method to create a hash palette from web-color strings. -
A simpler sketch that manages without callbacks.
-
Yet another sketch that shows how you can use the magic of JRuby to replace an anonymous callback with a block.
-
This sketch features the use of a ruby
proc
to implement a callback (in place of a rubylambda
) seeon_anim
-
Using hype utilities to pixellate an image.