All Projects → ruby-processing → JRubyArt

ruby-processing / JRubyArt

Licence: GPL-3.0, Unknown licenses found Licenses found GPL-3.0 LICENSE.md Unknown license.txt
JRubyArt a ruby implementation of processing

Programming Languages

java
68154 projects - #9 most used programming language
ruby
36898 projects - #4 most used programming language
GLSL
2045 projects

Projects that are alternatives of or similar to JRubyArt

Pts
A library for visualization and creative-coding
Stars: ✭ 4,628 (+5219.54%)
Mutual labels:  art, creative-coding, sound, generative-art
generative-art-Processing
Processingによるアート作品をまとめたリポジトリです.一部の作品はopenFrameworksで書かれています.This is a repository for art portfolio of Processing art. Some of arts are written in openFrameworks, one of the C++ libraries.
Stars: ✭ 31 (-64.37%)
Mutual labels:  art, creative-coding, generative-art
001
draw_code.001 — ThreeJS, WebGL & GLSL
Stars: ✭ 48 (-44.83%)
Mutual labels:  art, creative-coding, generative-art
Awesome Creative Coding
Creative Coding: Generative Art, Data visualization, Interaction Design, Resources.
Stars: ✭ 8,696 (+9895.4%)
Mutual labels:  art, creative-coding, generative-art
generative-art
🌈🎨 Generative Art is the idea realized as genetic code of artificial events, as construction of dynamic complex systems able to generate endless variations. This is also a nuxt-module (@luxdamore/nuxt-canvas-sketch) - [three.js, tensorflow.js and gsap are not included].
Stars: ✭ 41 (-52.87%)
Mutual labels:  art, creative-coding, generative-art
microbium-app
Draw new worlds
Stars: ✭ 89 (+2.3%)
Mutual labels:  art, creative-coding, generative-art
Urpflanze
A library for developers who want to approach to creative coding, artists who want to approach coding and for those who find it fun to play with math.
Stars: ✭ 118 (+35.63%)
Mutual labels:  art, creative-coding, generative-art
100daysofgenerativeart
My #100DaysOfGenerativeArt personal challenge
Stars: ✭ 19 (-78.16%)
Mutual labels:  art, creative-coding
Sofloo Spot
Click Randomize
Stars: ✭ 37 (-57.47%)
Mutual labels:  art, generative-art
BeatDrop
BeatDrop Music Visualizer
Stars: ✭ 54 (-37.93%)
Mutual labels:  creative-coding, generative-art
Geopattern
📐 Create beautiful generative image patterns from a string in golang.
Stars: ✭ 1,113 (+1179.31%)
Mutual labels:  art, generative-art
Generative.fm
A platform for playing generative music in the browser.
Stars: ✭ 1,534 (+1663.22%)
Mutual labels:  art, generative-art
Pxlsrt
Pixel sorter written in Ruby
Stars: ✭ 119 (+36.78%)
Mutual labels:  art, generative-art
Score
ossia score, an interactive sequencer for the intermedia arts.
Stars: ✭ 808 (+828.74%)
Mutual labels:  art, creative-coding
Armos
A free and open source library for creative coding in D programming language.
Stars: ✭ 42 (-51.72%)
Mutual labels:  art, creative-coding
Snek
See https://github.com/inconvergent/weir instead
Stars: ✭ 696 (+700%)
Mutual labels:  art, generative-art
Party Mode
An experimental music visualizer using d3.js and the web audio api.
Stars: ✭ 690 (+693.1%)
Mutual labels:  art, generative-art
Generative-Art
A selection of generative art scripts written in Python
Stars: ✭ 284 (+226.44%)
Mutual labels:  art, generative-art
Art Dcgan
Modified implementation of DCGAN focused on generative art. Includes pre-trained models for landscapes, nude-portraits, and others.
Stars: ✭ 1,882 (+2063.22%)
Mutual labels:  art, generative-art
Blossom
A lovely interactive music generator
Stars: ✭ 162 (+86.21%)
Mutual labels:  art, generative-art

JRubyArt

Gem Version Travis CI

A new version for jdk17+ and JRuby-9.3.2.0 use, does not require an installed vanilla processing, however if installed you can use processing-ide to download libraries. Configuration file is incompatible with that of previous version of JRubyArt (and you should move or rename old config.yml to keep it). This version will run with a default configuration file but you won't be able to use processing libraries, until you match configuration to your setup. Illegal reflective access warning should be fixed for this release (by using JOGL-2.4.0-rc jars), though you may need to define JAVA_HOME for JRuby warnings to be suppressed.

Requirements

A clean start for jruby_art with custom processing core included, built for jruby-9.3.2.0 see wiki for building gem from this repo.

Requirements

A suitable version of ruby (MRI ruby 2.6+ or jruby-9.3.2.0) to download gem. NB: avoid ruby 2.7, it is guaranteed to give you problems (you've been warned) Tested and working OpenJDK 17, if you have any issues with opengl sketches with distro installed JDK use a JDK from AdoptOpenJDK.

Configuration

You can if you wish leave configuration to the new autoconfig tool (delete or rename existing config to do this). The config file is config.yml in the ~/.jruby_art folder, the autoconfig gets run on k9 --install expected to just work.

config.yml on linux

---
processing_ide: true
library_path: "/home/tux/sketchbook"
MAX_WATCH: 32
JRUBY: true
template: bare
java_args:
  # Global java_args can be used to suppress reflective access warn

Install Steps (assumes you have requirements above)

 gem install jruby_art
 k9 --install # installs jruby-complete-9.2.13.0 and downloads and installs samples to ~/k9_samples
 cd ~/k9_samples/contributed
 k9 --run jwishy.rb # if you have jruby-9.2.13.0 installed or config `JRUBY: false`
 # to use jruby-complete set `JRUBY: false` in config

Create sketches from built in templates

k9 --create fred 200 200                # basic sketch fred.rb
k9 --create fred 200 200 p2d            # basic P2D sketch fred.rb

To create either a class wrapped sketch or emacs sketch set template: class or template: emacs in config.yml

Simple Sketch

def setup
  sketch_title 'My Sketch'
end

def draw
  background 0
  fill 200
  ellipse width / 2, height / 2, 300, 200
end

def settings
  size 400, 300
end

Run Sketch

See above be prepared to KILL the odd java process (ie when sketch does not exit cleanly)

Watch sketches

k9 --watch sketch.rb # NB: doesn't work with FX2D render mode

Open pry console on sketch

k9 --live sketch.rb # pry is bound to Processing.app # needs `jruby -S gem install pry`

Example sketches

Worked Examples and, The-Nature-of-Code-Examples-for-JRubyArt feel free to add your own, especially ruby-2.6+ syntax now we can. These can now be downloaded using k9 --install please move existing k9_samples if you wish to keep them.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].