processing 0.5.9 → 0.5.11
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 +10 -0
- data/VERSION +1 -1
- data/lib/processing/graphics_context.rb +4 -1
- data/lib/processing/vector.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dde180287b181e5828695f0606b3ac71b12cfba1c145a2a7c93d13843f1b6fa
|
4
|
+
data.tar.gz: c062bfc9da57cf833daae67151c68f0717cd50d5984e6590ce04219e590ca487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c43ddebef7308cd05abc811d3ef2151d3b7f1bbb17d707f430ffbedc82d0e11ba48a46d2ab62cd4e40d5972ca326340e1099ed6460eb93dceb99f92ad98e15c9
|
7
|
+
data.tar.gz: 47616df79b4fc59344d070d29330b5b3ec6a3ed16569548e1ea52d35dec307fb9e9bbfb29c091d969fcd53f71cd647c02665b64d973d335c8fb209c7049351b6
|
data/ChangeLog.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
# processing ChangeLog
|
2
2
|
|
3
3
|
|
4
|
+
## [v0.5.11] - 2023-05-21
|
5
|
+
|
6
|
+
- copy() and blend() now work with tint color
|
7
|
+
|
8
|
+
|
9
|
+
## [v0.5.10] - 2023-05-19
|
10
|
+
|
11
|
+
- Vector#array takes parameter for number of dimensions
|
12
|
+
|
13
|
+
|
4
14
|
## [v0.5.9] - 2023-05-18
|
5
15
|
|
6
16
|
- Update dependencies
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.11
|
@@ -1036,8 +1036,11 @@ module Processing
|
|
1036
1036
|
#
|
1037
1037
|
def blend(img = nil, sx, sy, sw, sh, dx, dy, dw, dh, mode)
|
1038
1038
|
assertDrawing__
|
1039
|
+
tint = @tint__ ? toRGBA__(*@tint__) : 1
|
1039
1040
|
img ||= self
|
1040
|
-
img.drawImage__
|
1041
|
+
img.drawImage__(
|
1042
|
+
@painter__, sx, sy, sw, sh, dx, dy, dw, dh,
|
1043
|
+
fill: tint, stroke: :none, blend_mode: mode)
|
1041
1044
|
end
|
1042
1045
|
|
1043
1046
|
# Saves screen image to file.
|
data/lib/processing/vector.rb
CHANGED
@@ -149,10 +149,12 @@ module Processing
|
|
149
149
|
|
150
150
|
# Returns x, y, z as an array
|
151
151
|
#
|
152
|
+
# @param n [Numeric] number of dimensions
|
153
|
+
#
|
152
154
|
# @return [Array] array of x, y, z
|
153
155
|
#
|
154
|
-
def array()
|
155
|
-
@point.to_a
|
156
|
+
def array(n = 3)
|
157
|
+
@point.to_a n
|
156
158
|
end
|
157
159
|
|
158
160
|
alias to_a array
|
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.11
|
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-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|