Module: Origami::Graphics::Canvas
- Included in:
- DummyCanvas, TextCanvas
- Defined in:
- lib/origami/graphics/render.rb
Instance Attribute Summary collapse
-
#gs ⇒ Object
readonly
Returns the value of attribute gs.
Instance Method Summary collapse
- #clear ⇒ Object
- #fill_path ⇒ Object
- #initialize ⇒ Object
- #stroke_path ⇒ Object
- #write_text(s) ⇒ Object
Instance Attribute Details
Instance Method Details
permalink #clear ⇒ Object
[View source]
32 33 34 |
# File 'lib/origami/graphics/render.rb', line 32 def clear @gs.reset end |
permalink #fill_path ⇒ Object
[View source]
38 |
# File 'lib/origami/graphics/render.rb', line 38 def fill_path; end |
permalink #initialize ⇒ Object
[View source]
28 29 30 |
# File 'lib/origami/graphics/render.rb', line 28 def initialize @gs = Graphics::State.new end |
permalink #stroke_path ⇒ Object
[View source]
37 |
# File 'lib/origami/graphics/render.rb', line 37 def stroke_path; end |
permalink #write_text(s) ⇒ Object
[View source]
36 |
# File 'lib/origami/graphics/render.rb', line 36 def write_text(s); end |