Propane
A simpler ruby-processing for linux/Windows/MacOS?
Install / Use
/learn @ruby-processing/PropaneREADME
Propane

This version is intended to work with openjdk11+.
A slim layer to communicate with Processing from JRuby, features maven build. We have created a configuration free version of ruby processing, for processing-4.0+, where we include a modified processing core (public runPropane() to replace protected runSketch(). These jars are small enough to include in a gem distribution, and hence we do not require configuration. This has created a scriptable version, ie files get run direct from jruby. Currently JavaFX is unsupported. Using maven to create an automatic module, to be refined.
adjust above for your OS/distro setup.
Requirements
Tested with OpenJDK17.
jdk-17.01+jruby-9.3.2.0
Building and testing
rake
rake gem
rake javadoc
Installation
jgem install propane # from rubygems
jgem install propane-4.0.0-java.gem # local install
# Alternative
jruby -S gem install propane # from rubygems
jruby -S gem install propane-4.0.0-java.gem # local install
Check Install
To check version and confirm gem bin files are on your path (also checks JDK version)
propane --version
Usage
A propane sketch:-
require 'propane'
class FlashingLightsSketch < Propane::App
def settings
size(800, 600)
end
def setup
sketch_title 'Flashing Light Sketch'
end
def draw
background(rand(255), rand(255), rand(255))
end
end
FlashingLightsSketch.new
Create template sketches with the sketch creator tool
propane -c my_sketch 200 200 # for default renderer
propane -c my_sketch 200 200 p2d # for opengl 2D renderer
propane -c my_sketch 200 200 p3d # for opengl 3D renderer
To run sketches
jruby my_sketch.rb # or use script to run sketches from atom
To install the sound and video libraries ~/.propane/libraries. Depends on wget.
propane --install sound
propane --install video
Other java libraries can be manually installed to the same folder (no need for processing ide)
See gh-pages for more detailed instructions and much more.
Examples
Worked Examples more to follow, feel free to add your own, especially ruby-2.5
- syntax now we can. To install the samples. The samples get copied to
~/propane_samples. Depends on wget.
propane --install samples
please move existing propane_samples if you wish to keep them. The current release features some noise sketches that exploit the new choice of noise implementation.
Related Skills
qqbot-channel
346.8kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.1k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
346.8kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
