texplay 0.2.910-i386-mswin32 → 0.2.920-i386-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.markdown +1 -1
- data/examples/example_blank.rb +22 -0
- data/examples/example_trace.rb +2 -2
- data/lib/1.8/texplay.so +0 -0
- data/lib/1.9/texplay.so +0 -0
- data/lib/texplay/version.rb +1 -1
- metadata +4 -3
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'common'
|
3
|
+
require 'gosu'
|
4
|
+
require 'texplay'
|
5
|
+
|
6
|
+
|
7
|
+
class W < Gosu::Window
|
8
|
+
def initialize
|
9
|
+
super(500, 500, false, 20)
|
10
|
+
@img = TexPlay.create_image(self, 500, 500, :color => Gosu::Color::BLUE)
|
11
|
+
end
|
12
|
+
|
13
|
+
def draw
|
14
|
+
@img.draw 100, 50,1
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
w = W.new
|
21
|
+
w.show
|
22
|
+
|
data/examples/example_trace.rb
CHANGED
@@ -5,10 +5,10 @@ require 'texplay'
|
|
5
5
|
|
6
6
|
class W < Gosu::Window
|
7
7
|
def initialize
|
8
|
-
super(
|
8
|
+
super(500, 500, false, 20)
|
9
9
|
@img = TexPlay.create_image(self, 500, 500).fill(3,3, :color => :alpha)
|
10
10
|
@img.rect 100, 100, 300 , 300, :color => :blue, :fill => true
|
11
|
-
puts (@img.line 400, 200, 100, 200, :trace => { :until_color => :blue })
|
11
|
+
puts (@img.line 400, 200, 100, 200, :trace => { :until_color => :blue }, :color_mode => :gosu)
|
12
12
|
end
|
13
13
|
|
14
14
|
def draw
|
data/lib/1.8/texplay.so
CHANGED
Binary file
|
data/lib/1.9/texplay.so
CHANGED
Binary file
|
data/lib/texplay/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 920
|
9
|
+
version: 0.2.920
|
10
10
|
platform: i386-mswin32
|
11
11
|
authors:
|
12
12
|
- John Mair (banisterfiend)
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-08 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- examples/common.rb
|
52
52
|
- examples/example_alpha_blend.rb
|
53
53
|
- examples/example_bezier.rb
|
54
|
+
- examples/example_blank.rb
|
54
55
|
- examples/example_color_control.rb
|
55
56
|
- examples/example_color_transform.rb
|
56
57
|
- examples/example_color_transform_circle.rb
|