diff --git a/src/PenSkin.js b/src/PenSkin.js index c222b81..39e2b6e 100644 --- a/src/PenSkin.js +++ b/src/PenSkin.js @@ -166,6 +166,12 @@ class PenSkin extends Skin { this._canvasDirty = true; } + /** + * Set context state to match provided pen attributes. + * @param {CanvasRenderingContext2D} context - the canvas rendering context to be modified. + * @param {PenAttributes} penAttributes - the pen attributes to be used. + * @private + */ _setAttributes (context, penAttributes) { penAttributes = penAttributes || DefaultPenAttributes; const color4f = penAttributes.color4f || DefaultPenAttributes.color4f;