Skip to content

Commit d68722b

Browse files
committed
propane for 3.3.7
1 parent 7861e66 commit d68722b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

_projects/jruby_art.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
---
22
layout: page
3-
title: "JRubyArt"
4-
keywords: propane, JRubyArt
3+
title: JRubyArt
4+
keywords: 'propane, JRubyArt'
55
---
66

7-
## Understanding A JRubyArt Sketch ##
7+
# Understanding A JRubyArt Sketch
88

99
Ruby-processing and now JRubyArt have both taken advantage of ruby language features to create a `DSL` like experience when coding processing in ruby, to the extent that
1010

1111
```ruby
1212
background 0
1313
```
14+
1415
is a valid sketch (ie you can write `static` sketches in ruby). Like vanilla processing we wrap this code before it is run but unlike vanilla processing we don't use a preprocessor.
1516

1617
What you can/should write (like a vanilla processing sketch) avoids much boilerplate.
1718

18-
### bare.rb ###
19+
## bare.rb
1920

2021
```ruby
2122
# load_library :my_library # jruby_art method
@@ -74,8 +75,9 @@ module Processing
7475
end
7576
```
7677

77-
### class_sketch.rb
78-
An explicitly class wrapped sketch can actually be run directly with `jruby`, but you should prefer [propane][propane] for that.
78+
## class_sketch.rb
79+
80+
An explicitly class wrapped sketch can actually be run directly with `jruby`, but you should prefer [propane][propane] for that. Another reason to favour [propane][propane] is the `glsl` sketch worked before processing-3.3.7 and hasn't worked since (reverted to earlier versions of PGraphicsOpenGL.java and PShapeOpenGL.java in propane).
7981

8082
```ruby
8183
# frozen_string_literal: false
@@ -102,5 +104,6 @@ MySketch.new
102104

103105
See more at [JRubyArt github pages][github_pages]
104106

105-
[github_pages]:https://ruby-processing.github.io/JRubyArt/
106107
[propane]:{{ site.github.url }}/projects/propane/
108+
109+
[github_pages]: https://ruby-processing.github.io/JRubyArt/

0 commit comments

Comments
 (0)