{"id":15020698,"url":"https://github.com/ruby-processing/picrate","last_synced_at":"2025-10-26T04:31:02.496Z","repository":{"id":46574810,"uuid":"132219065","full_name":"ruby-processing/PiCrate","owner":"ruby-processing","description":"A ruby-processing for the raspberry-pi (works on linux)","archived":false,"fork":false,"pushed_at":"2023-03-27T22:21:20.000Z","size":9429,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-31T14:22:14.185Z","etag":null,"topics":["creative-coding","generative-art","jruby","processing","raspberrypi","ruby"],"latest_commit_sha":null,"homepage":"https://ruby-processing.github.io/PiCrate/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby-processing.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-05-05T05:49:49.000Z","updated_at":"2023-09-21T14:28:53.000Z","dependencies_parsed_at":"2024-09-23T03:00:40.569Z","dependency_job_id":"a508d54f-8b11-40d0-bf5a-ddb9ef8e923d","html_url":"https://github.com/ruby-processing/PiCrate","commit_stats":{"total_commits":397,"total_committers":2,"mean_commits":198.5,"dds":"0.12090680100755669","last_synced_commit":"c7a2b6a98b5e2868f2461c02ef72021504be36c5"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FPiCrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FPiCrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FPiCrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-processing%2FPiCrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby-processing","download_url":"https://codeload.github.com/ruby-processing/PiCrate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238259011,"owners_count":19442513,"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":["creative-coding","generative-art","jruby","processing","raspberrypi","ruby"],"created_at":"2024-09-24T19:55:27.198Z","updated_at":"2025-10-26T04:30:58.700Z","avatar_url":"https://github.com/ruby-processing.png","language":"Java","readme":"__C6H3N3O7__ [![Gem Version](https://badge.fury.io/rb/picrate.svg)](https://badge.fury.io/rb/picrate)![Travis CI](https://travis-ci.org/ruby-processing/PiCrate.svg)\n\n# PiCrate\nVersion for `Raspberry Pi OS` on raspberryPI 3B+ works with jdk17. That also works on 64 bit `ManjaroArm` distro on RaspberryPI4. Create processing sketches in ruby on raspberry-pi and linux (this project is a parallel development of [propane][propane] targetting the raspberry-pi, but will initially be developed on a regular linux box). The aim is to produce a gem installable app that can be run with jruby, with minimal dependencies. Drop the `C` and you get pirate, or and an `e` and get `PiCreate`, a happy coincidence?\n\n\n### To install from rubygems ###\n\n```bash\njgem install picrate\n```\n\n### To Build and Test ###\n\nClone main branch:-\n\nRequires java to build (and [jogl-2.4.0-rc jars][jogl_jars]), but uses a maven wrapper so you don't need to install maven. Suggest build/test on regular linux box, but is designed for use on both RaspberryPI 3B+ and RaspberryPI4. Needs installed jruby to test/run.\n\n```bash\ncd PiCrate # or whatever you call it\nrake # assumes an installed version of vanilla processing\njgem install picrate-2.5.2-java.gem\n\n```\nTo create a template sketch:-\n```bash\npicrate -c my_sketch 200 200\n```\nEdit sketch ([vim][vim] is a good choice, but we recommend [geany][geany]) :-\n```ruby\n#!/usr/bin/env jruby\n# frozen_string_literal: false\nrequire 'picrate'\n\nclass MySketch \u003c Processing::App\n  def settings\n    size 200, 200\n  end\n\n  def setup\n    sketch_title 'My Sketch'\n  end\n\n  def draw\n    background 0\n    fill 0, 0, 200\n    ellipse 100, 100, 90, 70\n  end\nend\n\nMySketch.new\n```\n### Run Sketch ###\n```bash\njruby --dev my_sketch.rb # --dev flag speeds start-up\n```\n\n[buster]:https://gist.github.com/monkstone/6ae9840d7b7008c177b4a9f589d14ec6\n[propane]:https://ruby-processing.github.io/propane/\n[vim]:https://github.com/ruby-processing/PiCrate/blob/master/docs/_editors/vim.md\n[geany]:https://github.com/ruby-processing/PiCrate/blob/master/docs/_editors/geany.md\n[jogl_jars]:https://jogamp.org/deployment/archive/rc/v2.4.0-rc-20210111/jar/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby-processing%2Fpicrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby-processing%2Fpicrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby-processing%2Fpicrate/lists"}