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.



24
25
26
# File 'lib/origami/graphics/render.rb', line 24

def gs
  @gs
end

Instance Method Details

#clearObject



30
31
32
# File 'lib/origami/graphics/render.rb', line 30

def clear
  @gs.reset
end

#fill_pathObject



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

def fill_path
end

#initializeObject



26
27
28
# File 'lib/origami/graphics/render.rb', line 26

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

#paint_shading(sh) ⇒ Object



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

def paint_shading(sh)
end

#stroke_pathObject



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

def stroke_path
end

#write_text(s) ⇒ Object



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

def write_text(s)
end