jruby_art 2.1.0.pre → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jruby_art-2.2.0.jar +0 -0
- data/lib/jruby_art.rb +6 -4
- data/lib/jruby_art/app.rb +4 -3
- data/lib/jruby_art/version.rb +1 -1
- data/vendors/Rakefile +1 -1
- metadata +7 -6
- data/lib/jruby_art-2.1.0.pre.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebbb071256ed356c298940ff1d43ab297083601dd1133f8bdc2cd9372c2cab75
|
4
|
+
data.tar.gz: fdb9418da66238174d66ed86cd7e01737141612dac48069d81c73d65bd002928
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db6e4d1bcccbe15f31785b4f454505d0fa298648ce119c2b6bba5cfca3da92a381b4fc1a1834d16611c7d3e569929347fabb0c29abf71bc8d91b51328450a2af
|
7
|
+
data.tar.gz: b3f8884511bbc842313fa8e20e38e0622e20199a0d36add5adc14ea59ac100ddbafeddfc4d7f22e4fbb39b1fab7a8f98e85b2ba37b91f7f568077fc9c1939f15
|
Binary file
|
data/lib/jruby_art.rb
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
# JRubyArt is for Code Art.
|
3
4
|
# Send suggestions, ideas, and hate-mail to mamba2928 [at] gmail.com
|
4
5
|
# Also, send samples and libraries.
|
5
6
|
unless defined? K9_ROOT
|
6
|
-
$LOAD_PATH << File.
|
7
|
-
K9_ROOT = File.
|
7
|
+
$LOAD_PATH << File.dirname(__dir__)
|
8
|
+
K9_ROOT = File.dirname(__dir__)
|
8
9
|
end
|
9
10
|
|
10
|
-
SKETCH_ROOT ||= Dir.pwd
|
11
|
-
|
12
11
|
require "#{K9_ROOT}/lib/jruby_art/version"
|
13
12
|
require "#{K9_ROOT}/lib/jruby_art/helpers/numeric"
|
13
|
+
# inherited from ruby-processing, we could probably re-factor this but since
|
14
|
+
# SKETCH_ROOT is used before instance of sketch is created leave it alone.
|
15
|
+
SKETCH_ROOT ||= Dir.pwd
|
14
16
|
|
15
17
|
# The top-level namespace, a home for all JRubyArt classes.
|
16
18
|
module Processing
|
data/lib/jruby_art/app.rb
CHANGED
@@ -15,6 +15,7 @@ module Processing
|
|
15
15
|
include_package 'processing.core'
|
16
16
|
# Load vecmath, fastmath and mathtool modules
|
17
17
|
Java::Monkstone::JRLibrary.load(JRuby.runtime)
|
18
|
+
|
18
19
|
# import custom Vecmath renderers
|
19
20
|
module Render
|
20
21
|
java_import 'monkstone.vecmath.GfxRender'
|
@@ -33,7 +34,7 @@ module Processing
|
|
33
34
|
key_typed: :keyTyped
|
34
35
|
}.freeze
|
35
36
|
class << self
|
36
|
-
attr_accessor :app
|
37
|
+
attr_accessor :app, :surface
|
37
38
|
end
|
38
39
|
# All sketches extend this class
|
39
40
|
class App < PApplet
|
@@ -42,12 +43,11 @@ module Processing
|
|
42
43
|
include MathTool
|
43
44
|
include Render
|
44
45
|
# Alias some methods for familiarity for Shoes coders.
|
45
|
-
# surface replaces :frame
|
46
|
+
# surface replaces :frame
|
46
47
|
alias oval ellipse
|
47
48
|
alias stroke_width stroke_weight
|
48
49
|
alias rgb color
|
49
50
|
alias gray color
|
50
|
-
field_reader :surface
|
51
51
|
|
52
52
|
def sketch_class
|
53
53
|
self.class.sketch_class
|
@@ -113,6 +113,7 @@ module Processing
|
|
113
113
|
puts(exception.backtrace.map { |trace| "\t#{trace}" })
|
114
114
|
close
|
115
115
|
end
|
116
|
+
@surface = self.get_surface
|
116
117
|
# NB: this is the processing runSketch() method as used by processing.py
|
117
118
|
run_sketch
|
118
119
|
end
|
data/lib/jruby_art/version.rb
CHANGED
data/vendors/Rakefile
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jruby_art
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Prout
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -57,7 +57,7 @@ files:
|
|
57
57
|
- lib/jogl-all-natives-macosx-universal.jar
|
58
58
|
- lib/jogl-all-natives-windows-amd64.jar
|
59
59
|
- lib/jogl-all.jar
|
60
|
-
- lib/jruby_art-2.
|
60
|
+
- lib/jruby_art-2.2.0.jar
|
61
61
|
- lib/jruby_art.rb
|
62
62
|
- lib/jruby_art/app.rb
|
63
63
|
- lib/jruby_art/config.rb
|
@@ -95,7 +95,8 @@ files:
|
|
95
95
|
- vendors/Rakefile
|
96
96
|
homepage: https://ruby-processing.github.io/JRubyArt/
|
97
97
|
licenses:
|
98
|
-
-
|
98
|
+
- GPL-3.0
|
99
|
+
- LGPL-2.0
|
99
100
|
metadata: {}
|
100
101
|
post_install_message: Use 'k9 --install' to install jruby-complete, and 'k9 --check'
|
101
102
|
to check config.
|
@@ -109,9 +110,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
110
|
version: '2.3'
|
110
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
112
|
requirements:
|
112
|
-
- - "
|
113
|
+
- - ">="
|
113
114
|
- !ruby/object:Gem::Version
|
114
|
-
version:
|
115
|
+
version: '0'
|
115
116
|
requirements:
|
116
117
|
- A decent graphics card
|
117
118
|
- java runtime >= 11.0.3+
|
data/lib/jruby_art-2.1.0.pre.jar
DELETED
Binary file
|