class Cura::Pencil

The tool used for drawing on a surface.

Public Instance Methods

draw_character(x, y, character, foreground=Cura::Color.black, background=Cura::Color.white, bold=false, underline=false) click to toggle source

Draw a single character.

Calls superclass method
# File lib/cura/pencil.rb, line 16
def draw_character(x, y, character, foreground=Cura::Color.black, background=Cura::Color.white, bold=false, underline=false)
  super
end
draw_point(x, y, color=Cura::Color.black) click to toggle source

Draw a point.

Calls superclass method
# File lib/cura/pencil.rb, line 5
def draw_point(x, y, color=Cura::Color.black)
  super
end
draw_rectangle(x, y, width, height, color=Cura::Color.black) click to toggle source

Draw a rectangle. TODO: filled argument

Calls superclass method
# File lib/cura/pencil.rb, line 11
def draw_rectangle(x, y, width, height, color=Cura::Color.black)
  super
end
draw_text(x, y, text, foreground=Cura::Color.black, background=Cura::Color.white, bold=false, underline=false) click to toggle source

Draw text.

Calls superclass method
# File lib/cura/pencil.rb, line 21
def draw_text(x, y, text, foreground=Cura::Color.black, background=Cura::Color.white, bold=false, underline=false)
  super
end