Make color, fill, stroke et al. thread-safe: #3077 by GKFX · Pull Request #4784 · processing/processing
@Override protected void strokeFromCalc() { super.strokeFromCalc(); strokeColorObject = new Color(strokeColor, true); protected void strokeFromCalc(int c) { super.strokeFromCalc(c); strokeColorObject = new Color(c, true); strokeGradient = false; }
@Override protected void tintFromCalc() { super.tintFromCalc(); protected void tintFromCalc(int c) { super.tintFromCalc(c); // TODO actually implement tinted images tintColorObject = new Color(tintColor, true); tintColorObject = new Color(c, true); }
@Override protected void fillFromCalc() { super.fillFromCalc(); fillColorObject = new Color(fillColor, true); protected void fillFromCalc(int c) { super.fillFromCalc(c); fillColorObject = new Color(c, true); fillGradient = false; }