Class Fz2D.Canvas
| Defined in: | src/renderer/canvas.coffee |
Overview
Subclasses
Class Method Summary
- .getContext(w, h, color = null, selector = null, type = @supported, opts = @opts) Requests and configures a context.
Instance Method Summary
- ::clear() Clears the canvas.
- ::constructor(w, h, color = null, selector = null) Constructor.
- ::draw(texture, sx, sy, sw, sh, x, y, w, h, hw, hh, angle, alpha) Draws a Fz2D.Texture.
- ::fill(color) Fills the canvas with a solid color.
- ::flush() Flushes the canvas.
- ::toElement() Returns the canvas as an HTML DOM element.
- ::toImage() Returns the canvas as an image.
Class Method Details
.getContext(w, h, color = null, selector = null, type = @supported, opts = @opts) Source
Constructor Details
::constructor(w, h, color = null, selector = null) Source
Instance Method Details
::clear() Source
::draw(texture, sx, sy, sw, sh, x, y, w, h, hw, hh, angle, alpha) Source
::fill(color) Source
::flush() Source
::toElement() Source
::toImage() Source