texplay 0.2.940-i386-mswin32 → 0.2.950-i386-mswin32

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 10/6/10
2
+ version 0.2.950
3
+ * fixed bug in apply_drawing_mode, wasn't using blended_pixel as source_pixel
4
+ * hex literal colors now accepted, e.g 0xffff0000 (red)
5
+
1
6
  9/6/10
2
7
  version 0.2.940
3
8
  * hopefully fixed :trace behaviour. Should now return nil for color when
data/README.markdown CHANGED
@@ -5,7 +5,7 @@
5
5
  INSTRUCTIONS
6
6
  ============
7
7
 
8
- **TexPlay version 0.2.940**
8
+ **TexPlay version 0.2.950**
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
 
@@ -0,0 +1,33 @@
1
+ require 'rubygems'
2
+ require 'common'
3
+ require 'gosu'
4
+ require 'texplay'
5
+
6
+
7
+
8
+ # TEST_CASE 1 shows 2 pieces of text, but the background is black, even with :chroma_key. TEST_CASE 2 shows nothing.
9
+ # However, if you remove the :chroma_key's, you see a black background (and no text) in TEST_CASE 2, so there, :chroma_key appears to work.
10
+
11
+ class Wnd < Gosu::Window
12
+ def initialize
13
+ super(500, 200, false)
14
+ self.caption = "Splice Issues"
15
+
16
+ @chrome = TexPlay::create_blank_image(self, 200, 200)
17
+ @sunset = Gosu::Image.new(self, "#{Common::MEDIA}/sand1.png")
18
+
19
+
20
+ @long_text = Gosu::Image.from_text(self, "This is a long piece of text..", Gosu::default_font_name, 60)
21
+ @chrome.splice @long_text, 0, 0
22
+
23
+ @chrome.rect 0,0, @chrome.width, @chrome.height, :texture => @sunset, :fill => true, :mode => :multiply
24
+
25
+ end
26
+
27
+ def draw
28
+ @chrome.draw(0,0,1)
29
+ end
30
+ end
31
+
32
+ Wnd.new.show
33
+
@@ -11,9 +11,9 @@ class W < Gosu::Window
11
11
  @gosu = Gosu::Image.new(self, "#{Common::MEDIA}/gosu.png")
12
12
 
13
13
  # put a border on the image
14
- @img.rect 0,0, @img.width - 1, @img.height - 1, :color => Gosu::Color::CYAN
14
+ @img.rect 0,0, @img.width - 1, @img.height - 1, :color => 0xffff00ff, :fill => true
15
15
 
16
- # perform some simple drawing actions
16
+ # perform some e drawing actions
17
17
  @img.line 0,0, @img.width - 1, @img.height - 1, :color => Gosu::Color::AQUA
18
18
  @img.circle 400, 100, 40, :fill => true, :color => [rand, rand, rand, 1]
19
19
  @img.rect 200, 300, 300, 400, :fill => true, :color => :red, :source_ignore => [:green],
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.940"
2
+ VERSION = "0.2.950"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 940
9
- version: 0.2.940
8
+ - 950
9
+ version: 0.2.950
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-09 00:00:00 +02:00
17
+ date: 2010-06-10 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -62,6 +62,7 @@ files:
62
62
  - examples/example_fill.rb
63
63
  - examples/example_fill_old.rb
64
64
  - examples/example_fluent.rb
65
+ - examples/example_font.rb
65
66
  - examples/example_gen_eval.rb
66
67
  - examples/example_hash_arguments.rb
67
68
  - examples/example_ippa.rb