salamander 0.0.3 → 0.0.4
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
- metadata +2 -2
@@ -3,14 +3,14 @@ module Salamander::Drawing
|
|
3
3
|
def draw_to (x2, y2)
|
4
4
|
x1, y1 = position
|
5
5
|
move_to(x2, y2)
|
6
|
-
SDL::Gfx.
|
6
|
+
SDL::Gfx.aalineColor(surface, x1.round, y1.round, x2.round, y2.round, color)
|
7
7
|
end
|
8
8
|
|
9
9
|
def draw (distance)
|
10
10
|
x1, y1 = position
|
11
11
|
move distance
|
12
12
|
x2, y2 = position
|
13
|
-
SDL::Gfx.
|
13
|
+
SDL::Gfx.aalineColor(surface, x1.round, y1.round, x2.round, y2.round, color)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/salamander/version.rb
CHANGED