processing 0.5.24 → 0.5.25
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 +6 -0
- data/VERSION +1 -1
- data/lib/processing/graphics_context.rb +8 -0
- data/lib/processing/window.rb +5 -1
- 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: f3b60eada02e0893ac99a0284c1d8c8063d0bb4cc9999447e79cf2c372459bb4
|
4
|
+
data.tar.gz: b52fb442274a706d06bf74a1c1a09c4eb08a8d513ede7991f34400a0a40753e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|
data/lib/processing/window.rb
CHANGED
@@ -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.
|
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
|
+
date: 2023-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|