This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def setup | |
size(300, 300) | |
frame_rate(10) | |
end | |
def draw | |
if frame_count == 3 | |
puts "ok" | |
exit | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake/clean' | |
require 'shellwords' | |
JRUBY_VERSION = "1.7.4" | |
PROCESSING_VERSION = "2.0.2" | |
CLOBBER.include("processing-#{PROCESSING_VERSION}-linux64.tgz", "jruby-complete-#{JRUBY_VERSION}.jar") | |
desc "download and copy to ruby-processing" | |
task :default => [:download, :copy_ruby, :copy] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Comment[en_GB]=processing ide | |
Comment=processing ide | |
Exec=ksystraycmd /usr/bin/processing | |
GenericName[en_GB]=Processing-2.1.1 | |
GenericName=Processing-2.1.1 | |
Icon=/usr/share/pixmaps/processing.xpm | |
MimeType= | |
Name[en_GB]=processing | |
Name=processing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Here's a little library for quickly hooking up controls to sketches. | |
# For messing with the parameters and such. | |
# These controls will set instance variables on the sketches. | |
# You can make sliders, checkboxes, buttons, and drop-down menus. | |
# (optionally) pass the range and default value. | |
module ControlPanel | |
class Slider < javax.swing.JSlider |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# version without embedded or online | |
# This class is a thin wrapper around Processing's PApplet. | |
# Most of the code here is for interfacing with Swing, | |
# web applets, going fullscreen and so on. | |
require 'java' | |
require 'ruby-processing/config' | |
require 'ruby-processing/helper_methods' | |
require 'ruby-processing/library_loader' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# version without embedded or online | |
# This class is a thin wrapper around Processing's PApplet. | |
# Most of the code here is for interfacing with Swing, | |
# web applets, going fullscreen and so on. | |
require 'java' | |
require 'ruby-processing/config' | |
require 'ruby-processing/helper_methods' | |
require 'ruby-processing/library_loader' | |
# the processing root defined below is uniquely dependable on Archlinux, but something similar for OSX' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project name="ProcessingPythonMode" default="release" basedir="./"> | |
<!-- Based on mode template http://github.com/martinleopold/TemplateMode --> | |
<!-- Note: now compiles two separate jars- one for python mode, and one that's a wrapper for the processing core that can run python files --> | |
<!-- You'll want to change these to compile. --> | |
<property name="processing.base" location="/usr/share/processing" /> <!-- The directory that you unpacked Processing into. --> | |
<property name="processing.sketchfolder" location="/home/tux/sketchbook" /> <!-- Your sketchbook folder. --> | |
<property name="java.target.bootclasspath" location="/opt/jdk1.7.0_45/jre/rt.jar" /> <!-- If you're using a newer jdk --> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#RP5_HOME: "" # windoes users should set this | |
PROCESSING_ROOT: "/usr/share/processing" # Works for ArchLinux | |
#PROCESSING_ROOT: "/home/tux/processing-2.2.1" # Other linux distros with user tux | |
#PROCESSING_ROOT: "/Applications/Processing.app/Contents/Java" # Path for Mac | |
#PROCESSING_ROOT: "C:\Java\processing-2.2.1" # if you follow PhiLhos suggestion for windoes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake/clean' | |
#JRUBY_VERSION = "1.7.8" | |
JRUBY_VERSION = "9000.dev" | |
CLOBBER.include("jruby-complete-#{JRUBY_VERSION}.jar") | |
desc "download, and copy to ruby-processing" | |
task :default => [:download, :copy_ruby] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# ~/.bashrc | |
# | |
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
alias ls='ls --color=auto' | |
PS1='[\u@\h \W]\$ ' | |
export GEM_HOME="${HOME}/.gem/ruby/2.0.0" |