texplay 0.2.722-i386-mswin32 → 0.2.800-i386-mswin32

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/Rakefile CHANGED
@@ -42,26 +42,26 @@ end
42
42
  #comment this when want to build normal gems.
43
43
  #only have this code uncommented when building mswin32 and mingw32
44
44
  #binary gems
45
- specification = Gem::Specification.new do |s|
46
- s.name = "texplay"
47
- s.summary = "TexPlay is a light-weight image manipulation framework for Ruby and Gosu"
48
- s.version = TexPlay::VERSION
49
- s.date = Time.now.strftime '%Y-%m-%d'
50
- s.author = "John Mair (banisterfiend)"
51
- s.email = 'jrmair@gmail.com'
52
- s.description = s.summary
53
- s.require_path = 'lib'
54
- s.add_dependency("gosu",">=0.7.14")
55
- s.platform = 'i386-mswin32'
56
- s.homepage = "http://banisterfiend.wordpress.com/2008/08/23/texplay-an-image-manipulation-tool-for-ruby-and-gosu/"
57
- s.has_rdoc = false
45
+ specification = Gem::Specification.new do |s|
46
+ s.name = "texplay"
47
+ s.summary = "TexPlay is a light-weight image manipulation framework for Ruby and Gosu"
48
+ s.version = TexPlay::VERSION
49
+ s.date = Time.now.strftime '%Y-%m-%d'
50
+ s.author = "John Mair (banisterfiend)"
51
+ s.email = 'jrmair@gmail.com'
52
+ s.description = s.summary
53
+ s.require_path = 'lib'
54
+ s.add_dependency("gosu",">=0.7.14")
55
+ s.platform = 'i386-mswin32'
56
+ s.homepage = "http://banisterfiend.wordpress.com/2008/08/23/texplay-an-image-manipulation-tool-for-ruby-and-gosu/"
57
+ s.has_rdoc = false
58
58
 
59
- s.files = ["Rakefile", "README.markdown", "CHANGELOG",
60
- "lib/texplay.rb", "lib/texplay-contrib.rb", "lib/texplay/version.rb", "lib/1.8/texplay.so",
61
- "lib/1.9/texplay.so"] +
59
+ s.files = ["Rakefile", "README.markdown", "CHANGELOG",
60
+ "lib/texplay.rb", "lib/texplay-contrib.rb", "lib/texplay/version.rb", "lib/1.8/texplay.so",
61
+ "lib/1.9/texplay.so"] +
62
62
  FileList["examples/*.rb", "examples/media/*"].to_a
63
- end
64
-
63
+ end
64
+
65
65
  Rake::GemPackageTask.new(specification) do |package|
66
66
  package.need_zip = false
67
67
  package.need_tar = false
@@ -30,13 +30,12 @@ class W < Gosu::Window
30
30
  @y2 += 1
31
31
 
32
32
 
33
- @copy2.splice @img, 0, 0, :crop => [@x2 - @rad, @y2 - @rad, @x2 + @rad, @y2 + @rad]
34
- @copy.splice @img, 0, 0, :crop => [@x - @rad, @y - @rad, @x + @rad, @y + @rad]
33
+ @copy2.splice @img, 0, 0, :crop => [@x2 - @rad, @y2 - @rad, @x2 + @rad, @y2 + @rad], :sync_mode => :no_sync
34
+ @copy.splice @img, 0, 0, :crop => [@x - @rad, @y - @rad, @x + @rad, @y + @rad], :sync_mode => :no_sync
35
35
  @img.
36
- circle @x, @y, @rad, :fill => true,
37
- :color_control => { :mult => [1.0, 0.5, 0.5, 1] }
36
+ circle @x, @y, @rad, :fill => true, :lerp => 0.3, :color => :red
38
37
 
39
- # circle @x2, @y2, @rad, :fill => true,
38
+ @img.circle @x2, @y2, @rad, :fill => true, :lerp => 0.3, :color => :blue
40
39
  # :color_control => { :mult => [0.3, 0.9, 0.3, 1] }
41
40
 
42
41
 
@@ -0,0 +1,23 @@
1
+ require 'rubygems'
2
+ require 'common'
3
+ require 'texplay'
4
+
5
+
6
+ class W < Gosu::Window
7
+ def initialize
8
+ super(1024, 768, false, 20)
9
+ @img = TexPlay.create_image(self, 500, 500).fill(3,3, :color => :alpha)
10
+ @img.rect 100, 100, 300 , 300, :color => :blue, :fill => true
11
+ puts (@img.line 0,0, 100, 100, :trace => { :until_color => :blue }).inspect
12
+ end
13
+
14
+ def draw
15
+ @img.draw 100, 50,1
16
+ end
17
+
18
+ end
19
+
20
+
21
+ w = W.new
22
+ w.show
23
+
@@ -6,24 +6,15 @@ require 'texplay'
6
6
  class W < Gosu::Window
7
7
  def initialize
8
8
  super(1024, 768, false, 20)
9
- @img = Gosu::Image.new(self, "#{Common::MEDIA}/bird.png")
10
- @green = Gosu::Image.new(self, "#{Common::MEDIA}/gob.png")
11
- ### @img = Gosu::Image.new(self, "gob.png")
12
- #@img = TexPlay.create_image(self, 500, 500).fill(0,0, :color => :red)
13
-
14
- @img.splice @green, 0, 0, :alpha_blend => true
15
- puts @img.get_pixel 15, 15
16
- # @img.rect 0, 0, @img.width, @img.height, :texture => @gob, :fill => true, :alpha_blend => true
17
-
9
+ @img = Gosu::Image.new(self, "#{Common::MEDIA}/gob.png")
10
+ @img.rect 0, 10, 300, 300, :color => :blue, :fill => true, :mode => :softlight
18
11
  end
19
12
 
20
13
  def draw
21
14
  @img.draw 100, 50,1
22
15
  end
23
-
24
16
  end
25
17
 
26
-
27
18
  w = W.new
28
19
  w.show
29
20
 
data/lib/1.8/texplay.so CHANGED
Binary file
data/lib/1.9/texplay.so CHANGED
Binary file
@@ -1,3 +1,3 @@
1
- module TexPlay
2
- VERSION = "0.2.722"
3
- end
1
+ module TexPlay
2
+ VERSION = "0.2.800"
3
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 722
9
- version: 0.2.722
8
+ - 800
9
+ version: 0.2.800
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-03-14 00:00:00 +13:00
17
+ date: 2010-03-22 00:00:00 +13:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -68,6 +68,7 @@ files:
68
68
  - examples/example_simple.rb
69
69
  - examples/example_splice.rb
70
70
  - examples/example_sync.rb
71
+ - examples/example_trace.rb
71
72
  - examples/example_turtle.rb
72
73
  - examples/example_weird.rb
73
74
  - examples/media/bird.png