File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed
processing_app/topics/shaders Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1+ # -*- encoding: utf-8 -*-
2+
3+ root = File . expand_path ( __dir__ )
4+
5+ desc 'run contributed samples'
6+ task :default => [ :all ]
7+
8+ desc 'run all autorun samples except hype'
9+ task :all do
10+ Rake ::Task [ :contributed ] . execute
11+ Rake ::Task [ :vecmath ] . execute
12+ Rake ::Task [ :shaders ] . execute
13+ Rake ::Task [ :slider ] . execute
14+ end
15+
16+ desc 'run contributed samples'
17+ task :contributed do
18+ sh "cd #{ root } /contributed && rake"
19+ end
20+
21+ desc 'shaders'
22+ task :shaders do
23+ sh "cd #{ root } /processing_app/topics/shaders && rake"
24+ end
25+
26+ desc 'vecmath'
27+ task :vecmath do
28+ sh "cd #{ root } /processing_app/library/vecmath/vec2d && rake"
29+ sh "cd #{ root } /processing_app/library/vecmath/vec3d && rake"
30+ sh "cd #{ root } /processing_app/library/vecmath/arcball && rake"
31+ end
32+
33+ desc 'hype'
34+ task :hype do
35+ sh "cd #{ root } /external_library/java/hype && rake"
36+ end
37+
38+ desc 'slider'
39+ task :slider do
40+ sh "cd #{ root } /processing_app/library/slider && rake"
41+ end
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ def setup
77 sketch_title 'Bw shader'
88 # @label = load_image('lachoy.jpg') # sketch needs --noruby flag to run
99 # @label = load_image((File.absolute_path('data/lachoy.jpg')) # no flag required
10- @label = load_image ( ( data_path ( 'lachoy.jpg' ) ) # no flag required
10+ @label = load_image ( data_path ( 'lachoy.jpg' ) ) # no flag required
1111 @can = create_can ( 100 , 200 , 32 , label )
1212 # @bw_shader = load_shader('bwfrag.glsl') # sketch needs --noruby flag to run
1313 # @bw_shader = load_shader(File.absolute_path('data/bwfrag.glsl')) # no flag required
You can’t perform that action at this time.
0 commit comments