_updatePenColor (penState) {
        const rgb = Color.hsvToRgb({
            h: penState.color * 360 / 100,
            s: penState.saturation / 100,
            v: penState.brightness / 100
        });
        penState.penAttributes.color4f[0] = rgb.r / 255.0;
        penState.penAttributes.color4f[1] = rgb.g / 255.0;
        penState.penAttributes.color4f[2] = rgb.b / 255.0;
        penState.penAttributes.color4f[3] = this._transparencyToAlpha(penState.transparency);
    }
/**
     * Update the cached color from the color, saturation, brightness and transparency values
     * in the provided PenState object.
     * @param {PenState} penState - the pen state to update.
     * @private
     */
Update the cached color from the color, saturation, brightness and transparency values
in the provided PenState object.
@param {PenState} penState - the pen state to update.
@private
Update the cached color from the color saturation brightness and transparency values in the provided PenState object . @param { PenState } penState - the pen state to update . @private
_updatePenColor (penState) {
        const rgb = Color.hsvToRgb({
            h: penState.color * 360 / 100,
            s: penState.saturation / 100,
            v: penState.brightness / 100
        });
        penState.penAttributes.color4f[0] = rgb.r / 255.0;
        penState.penAttributes.color4f[1] = rgb.g / 255.0;
        penState.penAttributes.color4f[2] = rgb.b / 255.0;
        penState.penAttributes.color4f[3] = this._transparencyToAlpha(penState.transparency);
    }
_updatePenColor ( penState ) { const rgb = Color . hsvToRgb ( { h : penState . color * 360 / 100 , s : penState . saturation / 100 , v : penState . brightness / 100 } ) ; penState . penAttributes . color4f [ 0 ] = rgb . r / 255.0 ; penState . penAttributes . color4f [ 1 ] = rgb . g / 255.0 ; penState . penAttributes . color4f [ 2 ] = rgb . b / 255.0 ; penState . penAttributes . color4f [ 3 ] = this . _transparencyToAlpha ( penState . transparency ) ; }
Update the cached color from the color, saturation, brightness and transparency values
 in the provided PenState object.
Update the cached color from the color saturation brightness and transparency values in the provided PenState object .