texplay 0.2.950-i386-mingw32 → 0.2.960-i386-mingw32

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -5,7 +5,7 @@
5
5
  INSTRUCTIONS
6
6
  ============
7
7
 
8
- **TexPlay version 0.2.950**
8
+ **TexPlay version 0.2.960**
9
9
 
10
10
  [Read The Documentation](http://banisterfiend.wordpress.com/2008/08/23/texplay-an-image-manipulation-tool-for-ruby-and-gosu/)
11
11
 
@@ -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 => :overlay, :color => :tyrian
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 => :invert, :color => :blue
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
 
@@ -5,26 +5,26 @@ require 'texplay'
5
5
 
6
6
 
7
7
  class W < Gosu::Window
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 => :blue, :fill => true
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
- @img.line 0, 0, 500, 500, :dest_ignore => :red
15
+ @img.line 0, 0, 500, 500, :dest_ignore => :red, :dest_select => :blue, :tolerance => 1
16
16
 
17
- @img.circle 200, 100, 50, :fill => true, :dest_select => [:red, :blue], :color => :orange
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
+
@@ -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
- @sun = Gosu::Image.new(self, "#{Common::MEDIA}/sunset.png")
11
- @img.splice @sun, 0, 0, :mode => :exclusion
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 100, 50,1
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
@@ -1,3 +1,3 @@
1
1
  module TexPlay
2
- VERSION = "0.2.950"
2
+ VERSION = "0.2.960"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 950
9
- version: 0.2.950
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-06-10 00:00:00 +02:00
17
+ date: 2010-07-04 00:00:00 +12:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency