Skip to content

Commit 27ce25f

Browse files
committed
use video-beta
1 parent bd97a5c commit 27ce25f

31 files changed

+615
-157
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# picrate-examples
2-
Examples for picrate see also propane-examples (as they are easily translated). Can be autorun with `rake`. The contributed folder exists for you to add your own (and submit as a PR). Ordinarily we expect users to install these examples with `picrate -i samples` or for first time users `picrate --install` which also installs `geany` configuration. If you use `geany` as your editor, will be able to run files from the editor, to run individual sketches from command line `cd` to folder of sketch and `jruby --dev your_sketch.rb`. Passing the `--dev` flag speeds `jruby` start-up.
2+
Examples for picrate see also picrate-examples (as they are easily translated). Can be autorun with `rake`. The contributed folder exists for you to add your own (and submit as a PR). Ordinarily we expect users to install these examples with `picrate -i samples` or for first time users `picrate --install` which also installs `geany` configuration. If you use `geany` as your editor, will be able to run files from the editor, to run individual sketches from command line `cd` to folder of sketch and `jruby --dev your_sketch.rb`. Passing the `--dev` flag speeds `jruby` start-up.

advanced_data/load_save_json.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require 'forwardable'
33
require 'json'
44
# This example demonstrates how 'sketch data' can be retrieved from a json file
5-
# in propane. Note this sketch re-uses the Bubble class from the bubble
5+
# in picrate. Note this sketch re-uses the Bubble class from the bubble
66
# library. The BubbleData class, can load, store and create instances of Bubble
77
# (and request them to display and/or show their label, when 'mouse over').
88
# @author Martin Prout, after Daniel Shiffmans version for processing

advanced_shader/blue_marble.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'picrate'
22
# Earth model with bump mapping, specular texture and dynamic cloud layer.
33
# Adapted from the THREE.js tutorial to processing by Andres Colubri,
4-
# translated to propane by Martin Prout:
4+
# translated to picrate by Martin Prout:
55
# http://learningthreejs.com/blog/2013/09/16/how-to-make-the-earth-in-webgl/
66
class BlueMarble < Processing::App
77
attr_reader :earth, :clouds, :earth_shader, :cloud_shader, :earth_rotation
258 KB
Binary file not shown.

external_library/gems/geomerative/hello_world.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
#!/usr/bin/env jruby
2+
# frozen_string_literal:true
3+
14
require 'picrate'
25
require 'geomerative'
36

47
class HolaMundo < Processing::App
5-
# Declare the objects we are going to use, so that they are accesible from setup() and from draw()
8+
# Declare the objects we are going to use, so that they are accessible
69
attr_reader :grp
710

811
def settings
@@ -15,7 +18,7 @@ def setup
1518
background(255)
1619
fill(255, 102, 0)
1720
stroke(0)
18-
@grp = RG.getText('Hola Mundo!', create_font('DejaVu Sans'), 72, CENTER)
21+
@grp = RG.get_text('Hola Mundo!', data_path('FreeSans.ttf'), 72, CENTER)
1922
end
2023

2124
def draw

external_library/gems/geomerative/picrate_merge.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def settings
3838
def setup
3939
sketch_title TEXT.join ' '
4040
RG.init(self)
41-
@my_font = RFont.new(create_font('DejaVu Sans'), 200, CENTER)
41+
@my_font = RFont.new(data_path('FreeSans.ttf'), 200, CENTER)
4242
@stop = false
4343
no_fill
4444
stroke(255)

external_library/gems/geomerative/rotate_first_letter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def setup
1717
background(255)
1818
fill(255, 102, 0)
1919
stroke(0)
20-
@grp = RG.getText('Hola Mundo!', create_font('DejaVu Sans'), 72, CENTER)
20+
@grp = RG.get_text('Hola Mundo!', data_path('FreeSans.ttf'), 72, CENTER)
2121
end
2222

2323
def draw

external_library/gems/geomerative/solid_type.rb

Lines changed: 0 additions & 141 deletions
This file was deleted.

external_library/gems/geomerative/typo_deform.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def setup
3838
@step = 3
3939
@my_text = 'BUBBLES'
4040
RG.init(self)
41-
@my_font = RFont.new(create_font('DejaVu Sans'), 113, CENTER)
41+
@my_font = RFont.new(data_path('FreeSans.ttf'), 113, CENTER)
4242
@stop_anime = false
4343
RCommand.setSegmentLength(10)
4444
RCommand.setSegmentator(RCommand::UNIFORMLENGTH)

external_library/gems/geomerative/typo_extra_bright.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def setup
3737
x_incr = 0.000005
3838
y_incr = 0.000008
3939
RG.init(self)
40-
my_font = RFont.new(create_font('DejaVu Sans'), 97, CENTER)
40+
my_font = RFont.new(data_path('FreeSans.ttf'), 97, CENTER)
4141
RCommand.set_segment_length(1)
4242
RCommand.set_segmentator(RCommand::UNIFORMLENGTH)
4343
@my_agents = my_font.to_group(my_text).get_points.map do |point|

0 commit comments

Comments
 (0)