texplay 0.2.950-i386-mingw32 → 0.2.960-i386-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +7 -0
- data/README.markdown +1 -1
- data/examples/example_color_transform.rb +2 -2
- data/examples/example_select.rb +14 -14
- data/examples/example_weird.rb +5 -3
- data/lib/1.8/texplay.so +0 -0
- data/lib/1.9/texplay.so +0 -0
- data/lib/texplay/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
4/7/10
|
2
|
+
version 0.2.960
|
3
|
+
* added :transparent pseudo-color
|
4
|
+
* added :tolerance option (applies to :trace and :source_select etc
|
5
|
+
family)
|
6
|
+
* fixed memleak in to_blob
|
7
|
+
|
1
8
|
10/6/10
|
2
9
|
version 0.2.950
|
3
10
|
* fixed bug in apply_drawing_mode, wasn't using blended_pixel as source_pixel
|
data/README.markdown
CHANGED
@@ -32,9 +32,9 @@ class W < Gosu::Window
|
|
32
32
|
|
33
33
|
@copy2.splice @img, 0, 0, :crop => [@x2 - @rad, @y2 - @rad, @x2 + @rad, @y2 + @rad], :sync_mode => :no_sync
|
34
34
|
@copy.splice @img, 0, 0, :crop => [@x - @rad, @y - @rad, @x + @rad, @y + @rad], :sync_mode => :no_sync
|
35
|
-
@img.rect @x - @rad, @y - @rad, @x + @rad, @y + @rad, :fill => true, :mode => :
|
35
|
+
@img.rect @x - @rad, @y - @rad, @x + @rad, @y + @rad, :fill => true, :mode => :color_dodge, :color => 0xff888888, :alpha_blend => true
|
36
36
|
|
37
|
-
@img.rect @x2 - @rad, @y2 - @rad, @x2 + @rad, @y2 + @rad, :fill => true, :mode => :
|
37
|
+
@img.rect @x2 - @rad, @y2 - @rad, @x2 + @rad, @y2 + @rad, :fill => true, :mode => :color_dodge, :color => 0xff888888
|
38
38
|
|
39
39
|
# @img.force_sync [0,0, @img.width, @img.height]
|
40
40
|
|
data/examples/example_select.rb
CHANGED
@@ -5,26 +5,26 @@ require 'texplay'
|
|
5
5
|
|
6
6
|
|
7
7
|
class W < Gosu::Window
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
def initialize
|
9
|
+
super(500, 500, false, 20)
|
10
|
+
@img = TexPlay.create_image(self, 500, 500)
|
11
|
+
@img.rect 100, 100, 200, 300, :color => :red, :fill => true
|
12
|
+
@img.rect 200, 100, 300, 300, :color_control => proc { [0, 0, 1 - (0.5 * rand), 1.0] }, :fill => true
|
13
13
|
|
14
14
|
|
15
|
-
|
15
|
+
@img.line 0, 0, 500, 500, :dest_ignore => :red, :dest_select => :blue, :tolerance => 1
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
|
21
|
-
def draw
|
22
|
-
@img.draw 100, 50,1
|
23
|
-
end
|
17
|
+
@img.circle 200, 100, 50, :fill => true, :dest_select => [:red, :blue], :color => :transparent
|
24
18
|
|
19
|
+
end
|
20
|
+
|
21
|
+
def draw
|
22
|
+
@img.draw 100, 50,1
|
23
|
+
end
|
24
|
+
|
25
25
|
end
|
26
26
|
|
27
27
|
|
28
28
|
w = W.new
|
29
29
|
w.show
|
30
|
-
|
30
|
+
|
data/examples/example_weird.rb
CHANGED
@@ -7,12 +7,14 @@ class W < Gosu::Window
|
|
7
7
|
def initialize
|
8
8
|
super(500, 500, false, 20)
|
9
9
|
@img = Gosu::Image.new(self, "#{Common::MEDIA}/gob.png")
|
10
|
-
@
|
11
|
-
@img.
|
10
|
+
@img.rect 0, 0, @img.width - 1, @img.height - 1
|
11
|
+
puts @img.line 1,1, 1, @img.height - 1, :trace => { :while_color => :alpha }
|
12
|
+
|
13
|
+
|
12
14
|
end
|
13
15
|
|
14
16
|
def draw
|
15
|
-
@img.draw
|
17
|
+
@img.draw 50, 50,1
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
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
|
+
- 960
|
9
|
+
version: 0.2.960
|
10
10
|
platform: i386-mingw32
|
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-
|
17
|
+
date: 2010-07-04 00:00:00 +12:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|