RenderTexture constructor
Implementation
RenderTexture(int width, int height, int fillColor) {
if (width <= 0) throw ArgumentError('width');
if (height <= 0) throw ArgumentError('height');
_width = width;
_height = height;
_source = _canvas = CanvasElement(width: _width, height: _height);
if (fillColor != 0) {
final context = _canvas!.context2D;
context.fillStyle = color2rgba(fillColor);
context.fillRect(0, 0, _width, _height);
}
}