processing 0.5.11 → 0.5.12
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/ChangeLog.md +5 -0
- data/VERSION +1 -1
- data/examples/filter.rb +15 -0
- data/lib/processing/graphics_context.rb +1 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdb98f9abd746cf56051dfd46120cc8bcb3010bb47a7588b28c6419ec9811815
|
4
|
+
data.tar.gz: 6f0295c45400eb60ebbd41b9c066e529d25abeffae07410400e4839e313811a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4da5a73ee018bb2ade02e0ed2517656c1174af64f48e2120eac9b65df5b086995a5d518799beb5141f74eba109908ac74198ad4241c6ed464c78fc7b1d0b806b
|
7
|
+
data.tar.gz: 41a845d4c73087296b80d1de72c5f6caee93806e7920b7a9dee9f9bd97e51ffc0abc3de54be8f9fac9e0c959086078bb0f6ac5811e0cf43807de64b5328cbcc8
|
data/ChangeLog.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.12
|
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
|
@@ -1156,7 +1156,6 @@ module Processing
|
|
1156
1156
|
@textAlignH__,
|
1157
1157
|
@textAlignV__,
|
1158
1158
|
@tint__,
|
1159
|
-
@filter__,
|
1160
1159
|
]
|
1161
1160
|
block.call if block
|
1162
1161
|
nil
|
@@ -1188,8 +1187,7 @@ module Processing
|
|
1188
1187
|
@imageMode__,
|
1189
1188
|
@textAlignH__,
|
1190
1189
|
@textAlignV__,
|
1191
|
-
@tint__
|
1192
|
-
@filter__ = @styleStack__.pop
|
1190
|
+
@tint__ = @styleStack__.pop
|
1193
1191
|
nil
|
1194
1192
|
end
|
1195
1193
|
|
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.12
|
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-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|
@@ -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
|