salamander 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/salamander/drawing/line.rb +2 -2
- data/lib/salamander/version.rb +1 -1
- data/lib/salamander/version.rbc +1 -1
- metadata +7 -7
@@ -8,9 +8,9 @@ module Salamander::Drawing
|
|
8
8
|
end
|
9
9
|
|
10
10
|
# Draws a line 'distance' pixels long from the current position in the current drawing color.
|
11
|
-
def line (distance)
|
11
|
+
def line (distance, direction=nil)
|
12
12
|
x1, y1 = position
|
13
|
-
move distance
|
13
|
+
move distance, direction
|
14
14
|
x2, y2 = position
|
15
15
|
SDL::Gfx.aalineColor(surface, x1.round, y1.round, x2.round, y2.round, color)
|
16
16
|
end
|
data/lib/salamander/version.rb
CHANGED
data/lib/salamander/version.rbc
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salamander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonathan Castello
|
@@ -59,16 +59,16 @@ extra_rdoc_files: []
|
|
59
59
|
|
60
60
|
files:
|
61
61
|
- lib/salamander.rb
|
62
|
-
- lib/salamander/support/radians.rb
|
63
62
|
- lib/salamander/constants.rb
|
64
63
|
- lib/salamander/actor.rb
|
65
|
-
- lib/salamander/drawing/point.rb
|
66
|
-
- lib/salamander/drawing/line.rb
|
67
|
-
- lib/salamander/drawing/shapes.rb
|
68
64
|
- lib/salamander/version.rbc
|
69
65
|
- lib/salamander/support.rb
|
70
66
|
- lib/salamander/drawing.rb
|
71
67
|
- lib/salamander/version.rb
|
68
|
+
- lib/salamander/support/radians.rb
|
69
|
+
- lib/salamander/drawing/point.rb
|
70
|
+
- lib/salamander/drawing/line.rb
|
71
|
+
- lib/salamander/drawing/shapes.rb
|
72
72
|
- bin/salamander
|
73
73
|
has_rdoc: true
|
74
74
|
homepage:
|