processing 0.5.11 → 0.5.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +12 -0
- data/VERSION +1 -1
- data/examples/filter.rb +15 -0
- data/lib/processing/graphics_context.rb +4 -8
- data/processing.gemspec +10 -10
- metadata +14 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 685bf4ac592778f9805e06c00856859d1ca10037d4e1025e0d4bf1d3b50bf2f9
|
4
|
+
data.tar.gz: d6cdb7356f24b325e844645b02a341889544d611327d297e433032f755ac3e8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df1286b2e0134790e073154a30c79f43a7ea43fec7f85d26739ae28e243972dd769be46cb7b66dea7543de16812a97167bc064006947835da5a8d4ac78d43ef7
|
7
|
+
data.tar.gz: '0952ad6d265e181ee12313f6b1e288375a57c68db472d9ee650dbffe902c0ce6cb83df88b3e8c88309d49a95f29f42d074ddaf272551a4f700466bfdef5c9b53'
|
data/ChangeLog.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
# processing ChangeLog
|
2
2
|
|
3
3
|
|
4
|
+
## [v0.5.13] - 2023-05-27
|
5
|
+
|
6
|
+
- pushMatrix(), pushStyle(), and push() return the result of the expression at the end of the block when a block given
|
7
|
+
- required_ruby_version >= 3.0.0
|
8
|
+
- Add spec.license
|
9
|
+
|
10
|
+
|
11
|
+
## [v0.5.12] - 2023-05-26
|
12
|
+
|
13
|
+
- pushStyle/popStyle do not manage filter state
|
14
|
+
|
15
|
+
|
4
16
|
## [v0.5.11] - 2023-05-21
|
5
17
|
|
6
18
|
- copy() and blend() now work with tint color
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.13
|
data/examples/filter.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
%w[xot rays reflex processing]
|
2
|
+
.map {|s| File.expand_path "../../#{s}/lib", __dir__}
|
3
|
+
.each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}
|
4
|
+
|
5
|
+
require 'processing'
|
6
|
+
using Processing
|
7
|
+
|
8
|
+
|
9
|
+
icon = loadImage 'https://xord.org/rubysketch/images/rubysketch128.png'
|
10
|
+
|
11
|
+
draw do
|
12
|
+
background 0, 10
|
13
|
+
image icon, 100, 100
|
14
|
+
filter INVERT
|
15
|
+
end
|
@@ -1099,13 +1099,12 @@ module Processing
|
|
1099
1099
|
|
1100
1100
|
# Pushes the current transformation matrix to stack.
|
1101
1101
|
#
|
1102
|
-
# @return [
|
1102
|
+
# @return [Object] result of the expression at the end of the block
|
1103
1103
|
#
|
1104
1104
|
def pushMatrix(&block)
|
1105
1105
|
assertDrawing__
|
1106
1106
|
@matrixStack__.push @painter__.matrix
|
1107
1107
|
block.call if block
|
1108
|
-
nil
|
1109
1108
|
ensure
|
1110
1109
|
popMatrix if block
|
1111
1110
|
end
|
@@ -1133,7 +1132,7 @@ module Processing
|
|
1133
1132
|
|
1134
1133
|
# Save current style values to the style stack.
|
1135
1134
|
#
|
1136
|
-
# @return [
|
1135
|
+
# @return [Object] result of the expression at the end of the block
|
1137
1136
|
#
|
1138
1137
|
def pushStyle(&block)
|
1139
1138
|
assertDrawing__
|
@@ -1156,10 +1155,8 @@ module Processing
|
|
1156
1155
|
@textAlignH__,
|
1157
1156
|
@textAlignV__,
|
1158
1157
|
@tint__,
|
1159
|
-
@filter__,
|
1160
1158
|
]
|
1161
1159
|
block.call if block
|
1162
|
-
nil
|
1163
1160
|
ensure
|
1164
1161
|
popStyle if block
|
1165
1162
|
end
|
@@ -1188,14 +1185,13 @@ module Processing
|
|
1188
1185
|
@imageMode__,
|
1189
1186
|
@textAlignH__,
|
1190
1187
|
@textAlignV__,
|
1191
|
-
@tint__
|
1192
|
-
@filter__ = @styleStack__.pop
|
1188
|
+
@tint__ = @styleStack__.pop
|
1193
1189
|
nil
|
1194
1190
|
end
|
1195
1191
|
|
1196
1192
|
# Save current styles and transformations to stack.
|
1197
1193
|
#
|
1198
|
-
# @return [
|
1194
|
+
# @return [Object] result of the expression at the end of the block
|
1199
1195
|
#
|
1200
1196
|
def push(&block)
|
1201
1197
|
pushMatrix
|
data/processing.gemspec
CHANGED
@@ -17,21 +17,21 @@ Gem::Specification.new do |s|
|
|
17
17
|
rdocs = glob.call *%w[README]
|
18
18
|
|
19
19
|
s.name = name
|
20
|
+
s.version = ext.version
|
21
|
+
s.license = 'MIT'
|
20
22
|
s.summary = 'Processing compatible Creative Coding Framework.'
|
21
23
|
s.description = 'Creative Coding Framework has API compatible to Processing or p5.js.'
|
22
|
-
s.
|
23
|
-
|
24
|
-
s.
|
25
|
-
s.email = 'xordog@gmail.com'
|
26
|
-
s.homepage = "https://github.com/xord/processing"
|
24
|
+
s.authors = %w[xordog]
|
25
|
+
s.email = 'xordog@gmail.com'
|
26
|
+
s.homepage = "https://github.com/xord/processing"
|
27
27
|
|
28
28
|
s.platform = Gem::Platform::RUBY
|
29
|
-
s.required_ruby_version = '>=
|
29
|
+
s.required_ruby_version = '>= 3.0.0'
|
30
30
|
|
31
|
-
s.add_runtime_dependency 'xot', '~> 0.1.
|
32
|
-
s.add_runtime_dependency 'rucy', '~> 0.1.
|
33
|
-
s.add_runtime_dependency 'rays', '~> 0.1.
|
34
|
-
s.add_runtime_dependency 'reflexion', '~> 0.1.
|
31
|
+
s.add_runtime_dependency 'xot', '~> 0.1.37'
|
32
|
+
s.add_runtime_dependency 'rucy', '~> 0.1.37'
|
33
|
+
s.add_runtime_dependency 'rays', '~> 0.1.38'
|
34
|
+
s.add_runtime_dependency 'reflexion', '~> 0.1.40'
|
35
35
|
|
36
36
|
s.add_development_dependency 'rake'
|
37
37
|
s.add_development_dependency 'test-unit'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: processing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xordog
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.37
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.
|
26
|
+
version: 0.1.37
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rucy
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.
|
33
|
+
version: 0.1.37
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1.
|
40
|
+
version: 0.1.37
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rays
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.1.
|
47
|
+
version: 0.1.38
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1.
|
54
|
+
version: 0.1.38
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: reflexion
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.1.
|
61
|
+
version: 0.1.40
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.1.
|
68
|
+
version: 0.1.40
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- examples/camera.rb
|
131
131
|
- examples/clock.rb
|
132
132
|
- examples/delay_camera.rb
|
133
|
+
- examples/filter.rb
|
133
134
|
- examples/hello.rb
|
134
135
|
- examples/image.rb
|
135
136
|
- examples/shake.rb
|
@@ -161,7 +162,8 @@ files:
|
|
161
162
|
- test/test_utility.rb
|
162
163
|
- test/test_vector.rb
|
163
164
|
homepage: https://github.com/xord/processing
|
164
|
-
licenses:
|
165
|
+
licenses:
|
166
|
+
- MIT
|
165
167
|
metadata: {}
|
166
168
|
post_install_message:
|
167
169
|
rdoc_options: []
|
@@ -171,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
173
|
requirements:
|
172
174
|
- - ">="
|
173
175
|
- !ruby/object:Gem::Version
|
174
|
-
version:
|
176
|
+
version: 3.0.0
|
175
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
178
|
requirements:
|
177
179
|
- - ">="
|