function PenSkin(id, renderer) {
        _classCallCheck(this, PenSkin);

        /**
         * @private
         * @type {RenderWebGL}
         */
        var _this = _possibleConstructorReturn(this, (PenSkin.__proto__ || Object.getPrototypeOf(PenSkin)).call(this, id));

        _this._renderer = renderer;

        /** @type {HTMLCanvasElement} */
        _this._canvas = document.createElement('canvas');

        /** @type {boolean} */
        _this._canvasDirty = false;

        /** @type {WebGLTexture} */
        _this._texture = null;

        /** @type {Silhouette} */
        _this._silhouette = new Silhouette();

        /** @type {boolean} */
        _this._silhouetteDirty = false;

        _this.onNativeSizeChanged = _this.onNativeSizeChanged.bind(_this);
        _this._renderer.on(RenderConstants.Events.NativeSizeChanged, _this.onNativeSizeChanged);

        _this._setCanvasSize(renderer.getNativeSize());
        return _this;
    }
/**
     * Create a Skin which implements a Scratch pen layer.
     * @param {int} id - The unique ID for this Skin.
     * @param {RenderWebGL} renderer - The renderer which will use this Skin.
     * @extends Skin
     * @listens RenderWebGL#event:NativeSizeChanged
     */
Create a Skin which implements a Scratch pen layer.
@param {int} id - The unique ID for this Skin.
@param {RenderWebGL} renderer - The renderer which will use this Skin.
Create a Skin which implements a Scratch pen layer . @param { int } id - The unique ID for this Skin . @param { RenderWebGL } renderer - The renderer which will use this Skin .
function PenSkin(id, renderer) {
        _classCallCheck(this, PenSkin);
        var _this = _possibleConstructorReturn(this, (PenSkin.__proto__ || Object.getPrototypeOf(PenSkin)).call(this, id));
        _this._renderer = renderer;
        _this._canvas = document.createElement('canvas');
        _this._canvasDirty = false;
        _this._texture = null;
        _this._silhouette = new Silhouette();
        _this._silhouetteDirty = false;
        _this.onNativeSizeChanged = _this.onNativeSizeChanged.bind(_this);
        _this._renderer.on(RenderConstants.Events.NativeSizeChanged, _this.onNativeSizeChanged);
        _this._setCanvasSize(renderer.getNativeSize());
        return _this;
    }
function PenSkin ( id , renderer ) { _classCallCheck ( this , PenSkin ) ; var _this = _possibleConstructorReturn ( this , ( PenSkin . __proto__ || Object . getPrototypeOf ( PenSkin ) ) . call ( this , id ) ) ; _this . _renderer = renderer ; _this . _canvas = document . createElement ( 'canvas' ) ; _this . _canvasDirty = false ; _this . _texture = null ; _this . _silhouette = new Silhouette ( ) ; _this . _silhouetteDirty = false ; _this . onNativeSizeChanged = _this . onNativeSizeChanged . bind ( _this ) ; _this . _renderer . on ( RenderConstants . Events . NativeSizeChanged , _this . onNativeSizeChanged ) ; _this . _setCanvasSize ( renderer . getNativeSize ( ) ) ; return _this ; }
Create a Skin which implements a Scratch pen layer.
Create a Skin which implements a Scratch pen layer .
/**
         * @private
         * @type {RenderWebGL}
         */ /** @type {HTMLCanvasElement} */ /** @type {boolean} */ /** @type {WebGLTexture} */ /** @type {Silhouette} */ /** @type {boolean} */