Sha256: 1e9e1c59f8a09417f5565a16eae8fd71e7d9f614b481d0882e91fd183a4c7446

Contents?: true

Size: 1.69 KB

Versions: 1

Compression:

Stored size: 1.69 KB

Contents

__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)

# PiCrate
New version for `Buster` on raspberryPI 3B+ assumes self installed jdk11 or greater.
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?

### To install from rubygems ###

```bash
jgem install picrate
```

### To Build and Test ###

Clone this repo:-

Requires java to build, 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 RaspberryPI 3B+. Needs installed jruby to test/run.

```bash
cd PiCrate
rake # assumes an installed version of vanilla processing
jgem install picrate-1.2.4-java.gem

```
To create a template sketch:-
```bash
picrate -c my_sketch 200 200
```
Edit sketch (vim is a good choice):-
```ruby
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'picrate'

class MySketch < Processing::App
  def settings
    size 200, 200
  end

  def setup
    sketch_title 'My Sketch'
  end

  def draw
    background 0
    fill 0, 0, 200
    ellipse 100, 100, 90, 70
  end
end

MySketch.new
```
### Run Sketch ###
```bash
jruby --dev my_sketch.rb # --dev flag speeds start-up
```


[propane]:https://ruby-processing.github.io/propane/
[oracle]:http://www.rpiblog.com/2014/03/installing-oracle-jdk-8-on-raspberry-pi.html

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picrate-2.0.0.pre-java README.md