{"id":18562775,"url":"https://github.com/ruby-processing/jrubyartlegacy","last_synced_at":"2025-05-15T17:36:49.341Z","repository":{"id":78032618,"uuid":"201188599","full_name":"ruby-processing/JRubyArtLegacy","owner":"ruby-processing","description":"Snapshot of JRubyArt as a Wrapper requiring Vanilla Processing","archived":false,"fork":false,"pushed_at":"2019-08-13T07:11:26.000Z","size":1971,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-17T12:45:41.278Z","etag":null,"topics":["jrubyart","ruby","sketches","snapshot","vanilla-processing"],"latest_commit_sha":null,"homepage":"https://ruby-processing.github.io/JRubyArtLegacy/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby-processing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-08T06:00:57.000Z","updated_at":"2019-08-13T07:11:28.000Z","dependencies_parsed_at":"2023-03-12T03:27:01.085Z","dependency_job_id":null,"html_url":"https://github.com/ruby-processing/JRubyArtLegacy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FJRubyArtLegacy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FJRubyArtLegacy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FJRubyArtLegacy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FJRubyArtLegacy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby-processing","download_url":"https://codeload.github.com/ruby-processing/JRubyArtLegacy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254388628,"owners_count":22063085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jrubyart","ruby","sketches","snapshot","vanilla-processing"],"created_at":"2024-11-06T22:10:49.706Z","updated_at":"2025-05-15T17:36:49.289Z","avatar_url":"https://github.com/ruby-processing.png","language":"Java","readme":"# JRubyArtLegacy\nSnapshot of JRubyArt as a Wrapper requiring Vanilla Processing\n\n## Requirements\nA version of `jruby_art` that requires an installed version of [processing](https://github.com/processing/processing/releases) suggested versions processing 3.3.7 for predicable shader behaviour or 3.5.3 as latest. Also requires at least [jruby-9.2.8.0](http://jruby.org/download) see [wiki](https://github.com/ruby-processing/JRubyArtLegacy/wiki) for building gem from this repo.  Changes from processing-2.0 to [processing-3.0 here](https://github.com/processing/processing/wiki/Changes-in-3.0). Expected to work on same platforms as vanilla processing (windows, mac, linux).\n## Requirements\n\nA suitable version of ruby (MRI `ruby 2.3+` or `jruby-9.2.8.0`) to download gem.\n\n`processing`\n\n`jdk1.8.0_171+` can be openjdk with OpenJFX _a separate download works on ArchLinux_, currently FX2D is still experimental but might in the future replace JAVA2D as default renderer, however for hardware graphics acceleration there is alway P2D / P3D.\n\n### recommended installs (JRubyArt is currently hard-coded to expect them)\n\nprocessing `video` and `sound-1.3.2+` libraries _best installed from the processing-3.5.3+ ide_ although for `video` on linux at least it may better to install the development version with support for gstreamer-1.0 (gstreamer-0.1.x is either deprecated or completely missing). NB: a replacement processing sound library is also under active development.\n\n## Configuration\n\nYou can if you wish leave configuration to the autoconfig tool (delete 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 on `macOS`, output may need tuning on `windows` / `linux` check with `k9 --check` (run both after gem install for both). Note this configuration file is incompatible with JRubyArt-2.2+.\n\n```yaml\n# YAML configuration file for jruby_art\n# K9_HOME: \"/home/ruby2.4.0 ... /jruby_art\" # windows users may need to set this\nPROCESSING_ROOT: \"/home/tux/processing-3.5.3\" # typical linux shown\n# important sketch_book path may be different for processing-3.0\nsketchbook_path: \"/home/tux/sketchbook\"\ntemplate: bare\nsketch_title: 'Edit Static Sketch' # for static sketch only\nwidth: 600 # for static sketch only\nheight: 600 # for static sketch only\n```\n\n## Install Steps (assumes you have requirements above)\n\n```bash\n gem install jruby_art\n k9 --install # installs jruby-complete-9.2.8.0 and downloads and installs samples to ~/k9_samples\n cd ~/k9_samples/contributed\n k9 --run jwishy.rb # if you have jruby-9.2.8.0 installed or config `JRUBY: false`\n # to use jruby-complete set `JRUBY: false` in config\n```\n## Create sketches from built in templates\n```bash\nk9 --create fred 200 200                # basic sketch fred.rb\nk9 --create fred 200 200 p2d            # basic P2D sketch fred.rb\n```\nTo create either a `class` wrapped sketch or `emacs` sketch set `template: class` or `template: emacs` in config.yml\n\n## Simple Sketch\n```ruby\n\ndef setup\n  sketch_title 'My Sketch'\nend\n\ndef draw\n  background 0\n  fill 200\n  ellipse width / 2, height / 2, 300, 200\nend\n\ndef settings\n  size 400, 300\nend\n```\n## Run Sketch\nSee above\nbe prepared to `KILL` the odd java process (ie when sketch does not exit cleanly)\n\n## Watch sketches\n```bash\nk9 --watch sketch.rb # NB: doesn't work with FX2D render mode\n```\n## Open pry console on sketch\n```bash\nk9 --live sketch.rb # pry is bound to Processing.app # needs `jruby -S gem install pry`\n```\n## Example sketches\n\n[Worked Examples](https://github.com/ruby-processing/JRubyArt-examples) and, [The-Nature-of-Code-Examples-for-JRubyArt](https://github.com/ruby-processing/The-Nature-of-Code-for-JRubyArt) feel free to add your own, especially ruby-2.2+ syntax now we can. These can now be downloaded using `k9 --install` please move existing `k9_samples` if you wish to keep them.  NB: The current release features a change from `AppRender` to `GfxRender`, so please update your `k9_samples`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby-processing%2Fjrubyartlegacy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby-processing%2Fjrubyartlegacy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby-processing%2Fjrubyartlegacy/lists"}