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


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

def gs
  @gs
end

Instance Method Details

#clearObject


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

def clear
    @gs.reset
end

#fill_pathObject


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

def fill_path; end

#initializeObject


28
29
30
# File 'lib/origami/graphics/render.rb', line 28

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

#paint_shading(sh) ⇒ Object


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

def paint_shading(sh); end

#stroke_pathObject


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

def stroke_path; end

#write_text(s) ⇒ Object


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

def write_text(s); end