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.
16 17 18 |
# 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) ⇒ Object
Draw a point.
5 6 7 |
# 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) ⇒ Object
Draw a rectangle. TODO: filled argument
11 12 13 |
# 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) ⇒ Object
Draw text.
21 22 23 |
# 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 |