processing 0.5.24 → 0.5.25

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: 80111264884369244c4162ec69d6158c1f0bb69d04d8f33517370f568ec81779
4
- data.tar.gz: 4004e0f90e2839ea7b467005a5d8f0c94921b719cd597f6e7145894fe1b300fe
3
+ metadata.gz: f3b60eada02e0893ac99a0284c1d8c8063d0bb4cc9999447e79cf2c372459bb4
4
+ data.tar.gz: b52fb442274a706d06bf74a1c1a09c4eb08a8d513ede7991f34400a0a40753e9
5
5
  SHA512:
6
- metadata.gz: 3cfa7f41a0dc0f216751f1b5e1c3faf04d7334f6c2e87329a34ac057234e31e5f3e34354118edff1cde0fecd6be1ca5874079ab3110b50894c0cfab037ef0318
7
- data.tar.gz: aa38853b9e8817a835ba21446485c8b2d3301f14d60ff067a2e121a2fc1631ed691a1610848dde9bd3cf4294af2a342bf8f78bc3fac42ce20392eafc9164d78f
6
+ metadata.gz: 9e44c2c202ca95de52b5b60f18f095f6c48a44d1c391191d9737daa526ae6055e1f7c68834702e6e4204287f2ebb922a8641e9a831bcdfe20fc22038c65d0f99
7
+ data.tar.gz: def47542188f549983cb05df41b24a568a149c7f791bea5048ed75852649e836f1dd3913f6ee5ae7976623f12f3887ae477f149b293abe32f284725fc93daa8a
data/ChangeLog.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # processing ChangeLog
2
2
 
3
3
 
4
+ ## [v0.5.25] - 2023-07-21
5
+
6
+ - Timer block can call drawing methods
7
+ - Add Processing::Window#update_window, and delete RubySketch::Window class
8
+
9
+
4
10
  ## [v0.5.24] - 2023-07-11
5
11
 
6
12
  - Resize the canvas when the window is resized
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.24
1
+ 0.5.25
@@ -347,6 +347,8 @@ module Processing
347
347
 
348
348
  # Returns the red value of the color.
349
349
  #
350
+ # @param color [Numeric] color value
351
+ #
350
352
  # @return [Numeric] the red value
351
353
  #
352
354
  def red(color)
@@ -355,6 +357,8 @@ module Processing
355
357
 
356
358
  # Returns the green value of the color.
357
359
  #
360
+ # @param color [Numeric] color value
361
+ #
358
362
  # @return [Numeric] the green value
359
363
  #
360
364
  def green(color)
@@ -363,6 +367,8 @@ module Processing
363
367
 
364
368
  # Returns the blue value of the color.
365
369
  #
370
+ # @param color [Numeric] color value
371
+ #
366
372
  # @return [Numeric] the blue value
367
373
  #
368
374
  def blue(color)
@@ -371,6 +377,8 @@ module Processing
371
377
 
372
378
  # Returns the red value of the color.
373
379
  #
380
+ # @param color [Numeric] color value
381
+ #
374
382
  # @return [Numeric] the red value
375
383
  #
376
384
  def alpha(color)
@@ -10,7 +10,7 @@ module Processing
10
10
  :key_down, :key_up,
11
11
  :pointer_down, :pointer_up, :pointer_move,
12
12
  :move, :resize, :motion,
13
- :before_draw, :after_draw, :update_canvas
13
+ :before_draw, :after_draw, :update_window, :update_canvas
14
14
 
15
15
  attr_accessor :auto_resize
16
16
 
@@ -75,6 +75,10 @@ module Processing
75
75
  @active = false
76
76
  end
77
77
 
78
+ def on_update(e)
79
+ draw_canvas {call_block @update_window, e} if @update_window
80
+ end
81
+
78
82
  def on_draw(e)
79
83
  window_painter.pixel_density.tap do |pd|
80
84
  prev, @prev_pixel_density = @prev_pixel_density, pd
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.24
4
+ version: 0.5.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - xordog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-11 00:00:00.000000000 Z
11
+ date: 2023-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xot