◐ Shell
clean mode source ↗

Make color, fill, stroke et al. thread-safe: #3077 by GKFX · Pull Request #4784 · processing/processing

Expand Up @@ -2460,9 +2460,9 @@ protected void strokeImpl() {

@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; }
Expand All @@ -2476,10 +2476,10 @@ protected void strokeFromCalc() {

@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); }

Expand All @@ -2492,9 +2492,9 @@ protected void tintFromCalc() {

@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; }
Expand Down