processing 0.5.30 → 0.5.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test-draw.yml +0 -1
- data/.github/workflows/test.yml +0 -1
- data/ChangeLog.md +26 -0
- data/Rakefile +14 -6
- data/VERSION +1 -1
- data/lib/processing/all.rb +1 -0
- data/lib/processing/font.rb +30 -3
- data/lib/processing/graphics.rb +0 -11
- data/lib/processing/graphics_context.rb +526 -53
- data/lib/processing/image.rb +38 -10
- data/lib/processing/shape.rb +294 -0
- data/lib/processing/vector.rb +3 -3
- data/processing.gemspec +4 -4
- data/test/helper.rb +86 -4
- data/test/{draw/p5.rb → p5.rb} +22 -8
- data/test/test_font.rb +33 -2
- data/test/test_graphics.rb +1 -7
- data/test/test_graphics_context.rb +671 -5
- data/test/test_image.rb +21 -0
- data/test/test_shape.rb +512 -0
- data/test/test_vector.rb +1 -1
- metadata +15 -16
- data/test/draw/helper.rb +0 -31
- data/test/draw/test_draw.rb +0 -22
data/test/draw/test_draw.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
require_relative 'helper'
|
2
|
-
|
3
|
-
|
4
|
-
class TestDraw < Test::Unit::TestCase
|
5
|
-
|
6
|
-
def test_rect()
|
7
|
-
assert_draw 'rect 10, 20, 30, 40'
|
8
|
-
assert_draw 'rectMode CORNER; rect 10, 20, 30, 40'
|
9
|
-
assert_draw 'rectMode CORNERS; rect 10, 20, 30, 50'
|
10
|
-
assert_draw 'rectMode CENTER; rect 40, 50, 30, 40'
|
11
|
-
assert_draw 'rectMode RADIUS; rect 40, 50, 30, 40'
|
12
|
-
end
|
13
|
-
|
14
|
-
def test_ellipse()
|
15
|
-
assert_draw 'ellipse 40, 50, 30, 40', threshold: 0.98
|
16
|
-
assert_draw 'ellipseMode CORNER; ellipse 10, 20, 30, 40', threshold: 0.98
|
17
|
-
assert_draw 'ellipseMode CORNERS; ellipse 10, 20, 30, 50', threshold: 0.98
|
18
|
-
assert_draw 'ellipseMode CENTER; ellipse 40, 50, 30, 40', threshold: 0.98
|
19
|
-
assert_draw 'ellipseMode RADIUS; ellipse 40, 50, 30, 40', threshold: 0.98
|
20
|
-
end
|
21
|
-
|
22
|
-
end# TestDraw
|