Class: CooCoo::Drawing::Canvas
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#blit(img, x, y) ⇒ Object
-
#circle(x, y, r) ⇒ Object
-
#flush ⇒ Object
-
#line(x1, y1, x2, y2) ⇒ Object
-
#rect(x, y, w, h) ⇒ Object
-
#stroke(points) ⇒ Object
-
#text(txt, x, y, font, size, style = nil) ⇒ Object
Instance Attribute Details
#fill_color ⇒ Object
Returns the value of attribute fill_color.
7
8
9
|
# File 'lib/coo-coo/drawing/canvas.rb', line 7
def fill_color
@fill_color
end
|
#stroke_color ⇒ Object
Returns the value of attribute stroke_color.
7
8
9
|
# File 'lib/coo-coo/drawing/canvas.rb', line 7
def stroke_color
@stroke_color
end
|
Instance Method Details
#blit(img, x, y) ⇒ Object
37
38
39
|
# File 'lib/coo-coo/drawing/canvas.rb', line 37
def blit(img, x, y)
self
end
|
#circle(x, y, r) ⇒ Object
33
34
35
|
# File 'lib/coo-coo/drawing/canvas.rb', line 33
def circle(x, y, r)
self
end
|
17
18
19
|
# File 'lib/coo-coo/drawing/canvas.rb', line 17
def flush
self
end
|
#line(x1, y1, x2, y2) ⇒ Object
21
22
23
|
# File 'lib/coo-coo/drawing/canvas.rb', line 21
def line(x1, y1, x2, y2)
self
end
|
#rect(x, y, w, h) ⇒ Object
29
30
31
|
# File 'lib/coo-coo/drawing/canvas.rb', line 29
def rect(x, y, w, h)
self
end
|
#stroke(points) ⇒ Object
25
26
27
|
# File 'lib/coo-coo/drawing/canvas.rb', line 25
def stroke(points)
self
end
|
#text(txt, x, y, font, size, style = nil) ⇒ Object
41
42
43
|
# File 'lib/coo-coo/drawing/canvas.rb', line 41
def text(txt, x, y, font, size, style = nil)
self
end
|