Class: Cura::Pencil
- Inherits:
-
Object
- Object
- Cura::Pencil
- Defined in:
- lib/cura/pencil.rb
Overview
The tool used for drawing on a surface.
Instance Method Summary collapse
-
#draw_character(x, y, character, foreground = Cura::Color.black, background = Cura::Color.white, bold = false, underline = false) ⇒ Object
Draw a single character.
-
#draw_point(x, y, color = Cura::Color.black) ⇒ Object
Draw a point.
-
#draw_rectangle(x, y, width, height, color = Cura::Color.black) ⇒ Object
Draw a rectangle.
-
#draw_text(x, y, text, foreground = Cura::Color.black, background = Cura::Color.white, bold = false, underline = false) ⇒ Object
Draw text.
Instance Method Details
#draw_character(x, y, character, foreground = Cura::Color.black, background = Cura::Color.white, bold = false, underline = false) ⇒ Object
Draw a single character.
18 19 20 |
# File 'lib/cura/pencil.rb', line 18 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) ⇒ Object
Draw a point.
7 8 9 |
# File 'lib/cura/pencil.rb', line 7 def draw_point(x, y, color=Cura::Color.black) super end |
#draw_rectangle(x, y, width, height, color = Cura::Color.black) ⇒ Object
Draw a rectangle. TODO: filled argument
13 14 15 |
# File 'lib/cura/pencil.rb', line 13 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) ⇒ Object
Draw text.
23 24 25 |
# File 'lib/cura/pencil.rb', line 23 def draw_text(x, y, text, foreground=Cura::Color.black, background=Cura::Color.white, bold=false, underline=false) super end |