processing 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6f8de5ad0bdc4fa06ebd896bb4ca1d251f110514ae5b829c54860e7cb05e760
4
- data.tar.gz: dc34a861ca6f57b8a7dbeceba4038bf244299519476c81344d384f574584da60
3
+ metadata.gz: 0dde180287b181e5828695f0606b3ac71b12cfba1c145a2a7c93d13843f1b6fa
4
+ data.tar.gz: c062bfc9da57cf833daae67151c68f0717cd50d5984e6590ce04219e590ca487
5
5
  SHA512:
6
- metadata.gz: 8f8d5a50f1986020d2d86ebcca58f35e2973fdc5d3637b8b951ec416e2ac44d8dfd11f7eb5f75e0e336625e969651ba69af1eb5eabe034a033467caba5c4a265
7
- data.tar.gz: 4f66a4794db94888ae7a78b366373c32076ba1f5506fb6915baeb7c7afc98e07df9d1766ecd1228fb89bd979c288cc8a5fdf3ca3cd21314bb5d811abf8f75d21
6
+ metadata.gz: c43ddebef7308cd05abc811d3ef2151d3b7f1bbb17d707f430ffbedc82d0e11ba48a46d2ab62cd4e40d5972ca326340e1099ed6460eb93dceb99f92ad98e15c9
7
+ data.tar.gz: 47616df79b4fc59344d070d29330b5b3ec6a3ed16569548e1ea52d35dec307fb9e9bbfb29c091d969fcd53f71cd647c02665b64d973d335c8fb209c7049351b6
data/ChangeLog.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  ## [v0.5.10] - 2023-05-19
5
10
 
6
11
  - Vector#array takes parameter for number of dimensions
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.10
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__ @painter__, sx, sy, sw, sh, dx, dy, dw, dh, blend_mode: mode
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.
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.10
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-19 00:00:00.000000000 Z
11
+ date: 2023-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xot