Module: Origami::Graphics::Canvas

Included in:
DummyCanvas, TextCanvas
Defined in:
lib/origami/graphics/render.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gsObject (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

#clearObject



37
38
39
# File 'lib/origami/graphics/render.rb', line 37

def clear
  @gs.reset
end

#fill_pathObject



43
# File 'lib/origami/graphics/render.rb', line 43

def fill_path; end

#initializeObject



33
34
35
# File 'lib/origami/graphics/render.rb', line 33

def initialize
  @gs = Graphics::State.new
end

#stroke_pathObject



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