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
#gs ⇒ Object (readonly)
Returns the value of attribute gs.
31 32 33 |
# File 'lib/origami/graphics/render.rb', line 31 def gs @gs end |
Instance Method Details
#clear ⇒ Object
37 38 39 |
# File 'lib/origami/graphics/render.rb', line 37 def clear @gs.reset end |
#fill_path ⇒ Object
43 |
# File 'lib/origami/graphics/render.rb', line 43 def fill_path; end |
#initialize ⇒ Object
33 34 35 |
# File 'lib/origami/graphics/render.rb', line 33 def initialize @gs = Graphics::State.new end |
#stroke_path ⇒ Object
42 |
# File 'lib/origami/graphics/render.rb', line 42 def stroke_path; end |
#write_text(s) ⇒ Object
41 |
# File 'lib/origami/graphics/render.rb', line 41 def write_text(s); end |