PF2d::Canvas(T)
Inherits Enumerable < PF2d::Viewable < PF2d::Drawable
Instance methods
clip(rect : Rect)
Sourcedraw(canvas : Canvas(T), src_rect : Rect(Number), dst_rect : Rect(Number), &)
Copy canvas to self, yielding a block with src value and dst value that will determine how the values are blended
- src_rect is scaled to dst_rect
draw(canvas : Canvas(T), pos : Vec = Vec[0, 0], src_rect : Rect(Number) | Nil = nil, &)
Sourcedraw(canvas : Canvas(T), pos : Vec = Vec[0, 0], src_rect : Rect(Number) | Nil = nil)
Sourceeach_point
Sourceeach_row
Sourceheight
Sourcein_bounds?(x, y)
Sourcein_bounds?(point)
Sourcequad
Sourcerect
Sourcewidth
SourceMacros
[](*args)
Source