rubysketch 0.1.4 → 0.1.5

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: a700236b7d7c181b106c69193116f9c510025848f07c1bf23f21a034d75fa068
4
- data.tar.gz: b881bfe8d43d923e48d6554a8a6af8e8f125831edab7fbb8551cbee7f314a7ab
3
+ metadata.gz: 2ab78b7cd8bbbeedb31234160054509bd9c55de56bce0f7a9251f75fbe60d22b
4
+ data.tar.gz: 555fff0c98f8d55cc71fcc6923a63ffa521a591a169abd2a8b71901e8dd7401c
5
5
  SHA512:
6
- metadata.gz: 5dba04b623e671f1247dc0a8d27b60f8f024fd82d37f03da2a59e82040430c1f3645295e5debac488315faf0a57031e44eab5c0d93214faf30b2c7c75bffcba9
7
- data.tar.gz: 4766c0a47804872d2aa9fa1119065df62c9b53254521697502a22340630f728bf47483f0bf6f9bf22c3d162e7865050db47bb261a49f7ee9e5c529a2c678c58c
6
+ metadata.gz: 0a7d3a9f9b3b229eae77484d7a9b59813fee6eb5f8225264e515f5dd131914c642fa9fcf1a3eb28839a65f395b24afe1c7acefc46a36e877fd3babc6fd9c6d6e
7
+ data.tar.gz: e7239c1aa04a9ee8ecec79df21efd4c9dbc5004c7814b58a35799abb33ce253f10279a5c899a6442ec3a7553956c13497e452f2da36ad50ad20265f0d1ac7bf5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
data/examples/hello.rb CHANGED
@@ -6,6 +6,7 @@ require 'rubysketch-processing'
6
6
 
7
7
 
8
8
  draw do
9
+ background 0, 10
9
10
  textSize 50
10
- text 'hello, world!', 10, 10
11
+ text 'hello, world!', mouseX, mouseY
11
12
  end
data/examples/shapes.rb CHANGED
@@ -18,7 +18,7 @@ draw do
18
18
 
19
19
  translate 10, 10
20
20
 
21
- push()
21
+ push
22
22
 
23
23
  text 'point', 0, 0
24
24
  point 0, 30
@@ -605,11 +605,9 @@ module RubySketch
605
605
  if rgba[3] == 1
606
606
  @painter__.background *rgba
607
607
  else
608
- f = @painter__.fill *rgba
609
- s = @painter__.stroke nil
610
- @painter__.rect 0, 0, width, height
611
- @painter__.fill f
612
- @painter__.stroke s
608
+ @painter__.push fill: rgba, stroke: nil do |_|
609
+ @painter__.rect 0, 0, width, height
610
+ end
613
611
  end
614
612
  nil
615
613
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubysketch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - xordog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-17 00:00:00.000000000 Z
11
+ date: 2020-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard