rubysketch 0.3.13 → 0.3.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0b393d392765c48e644231ab449ba437ab05bc61a3369c18b634dcdd7b156bc
4
- data.tar.gz: 01444dfbf328a526dd607b125bfc03d1ae274b11e13817b5090442258843e63d
3
+ metadata.gz: '0394813335c89ce937297ef2c62819dc3c11f70dbbf74efd320eaf0a72f8b386'
4
+ data.tar.gz: 9acea3187bd120239a7c387fa272e252593dc7ce0afa73425f39f65fe0b2d6bb
5
5
  SHA512:
6
- metadata.gz: c768f5c5948a8433d2e5b3317aecad587fb55dea24e45894bbf2c229acc8d61108804835c029ec10cfa5f59cb294bc2817db2f843782ea852274f2d4609b36c3
7
- data.tar.gz: f638eb0330dd4bb4851375eb2b50b64dfbc7cee366b9d109162381fc7ebfcdb82f663d8457fbea80650a509e89223ced77825c087e45413d10131599c6d13688
6
+ metadata.gz: 7d1824db8f17db944d6b1a2d6069b1acfcc4dafdf3d52facc2e5cdf0281108b825e89150e509c7e58ad8e2c7641d3ee9e6612f8486ebf9190ccd30cc48dbd1ae
7
+ data.tar.gz: bdefffaabba512793dddc3204d749a22968096f464a9107214630012585f40f2aedd294216af321c4ae83f4fd5eb11e24d2eaab4fd1486cb39c3ecb50714c00f
@@ -12,10 +12,10 @@ jobs:
12
12
  - name: checkout
13
13
  uses: actions/checkout@v2
14
14
 
15
- - name: ruby 2.6
15
+ - name: ruby 2.7
16
16
  uses: actions/setup-ruby@v1
17
17
  with:
18
- ruby-version: 2.6.x
18
+ ruby-version: 2.7.x
19
19
 
20
20
  - name: install gems
21
21
  run: |
@@ -13,10 +13,10 @@ jobs:
13
13
  steps:
14
14
  - uses: actions/checkout@v2
15
15
 
16
- - name: ruby 2.6
16
+ - name: ruby 2.7
17
17
  uses: actions/setup-ruby@v1
18
18
  with:
19
- ruby-version: 2.6.x
19
+ ruby-version: 2.7.x
20
20
 
21
21
  - name: install gems
22
22
  run: |
data/ChangeLog.md CHANGED
@@ -1,6 +1,23 @@
1
1
  # RubySketch ChangeLog
2
2
 
3
3
 
4
+ ## [0.3.16] - 2021-2-14
5
+
6
+ - add key, keyCode and keyPressed system values
7
+ - add keyPressed(), keyReleased() and keyTyped() functions
8
+ - add motionGravity value and motion() function
9
+
10
+
11
+ ## [0.3.15] - 2020-12-12
12
+
13
+ - delete temporary directory on launch
14
+
15
+
16
+ ## [0.3.14] - 2020-12-12
17
+
18
+ - fix loadImage() fails when Encoding.default_internal is not nil
19
+
20
+
4
21
  ## [0.3.13] - 2020-12-12
5
22
 
6
23
  - size(), createCanvas(): default pixelDensity is same as current value
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.13
1
+ 0.3.17
data/examples/image.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  require 'rubysketch-processing'
6
6
 
7
7
 
8
- icon = loadImage 'https://xord.org/rubysketch/rubysketch.png'
8
+ icon = loadImage 'https://xord.org/rubysketch/images/rubysketch128.png'
9
9
 
10
10
  draw do
11
11
  background 0, 10
@@ -0,0 +1,13 @@
1
+ module RubySketch
2
+
3
+
4
+ class App < Reflex::Application
5
+
6
+ def on_motion(e)
7
+ RubySketch.instance_variable_get(:@window)&.on_motion e
8
+ end
9
+
10
+ end# App
11
+
12
+
13
+ end# RubySketch
@@ -4,12 +4,12 @@ module RubySketch
4
4
  # @private
5
5
  class GLSL
6
6
 
7
- def initialize (glsl)
7
+ def initialize(glsl)
8
8
  @shader = Reflex::Shader.new glsl
9
9
  end
10
10
 
11
11
  # @private
12
- def on_start__ (window)
12
+ def on_start__(window)
13
13
  start = Time.now.to_f
14
14
 
15
15
  window.draw = proc do |e, painter|
@@ -5,15 +5,15 @@ module RubySketch
5
5
 
6
6
  module_function
7
7
 
8
- def name ()
8
+ def name()
9
9
  super.split('::')[-2]
10
10
  end
11
11
 
12
- def version ()
12
+ def version()
13
13
  open(root_dir 'VERSION') {|f| f.readline.chomp}
14
14
  end
15
15
 
16
- def root_dir (path = '')
16
+ def root_dir(path = '')
17
17
  File.expand_path "../../#{path}", __dir__
18
18
  end
19
19