Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make color, fill, stroke et al. thread-safe: #3077
calcEtc color variables deleted; colorCalc now returns a float[4] array.
  • Loading branch information
GKFX committed Dec 14, 2016
commit a0bad85033dc16b63da3395db6b495216d9ee782
12 changes: 6 additions & 6 deletions core/src/processing/awt/PGraphicsJava2D.java
Original file line number Diff line number Diff line change
Expand Up @@ -2460,8 +2460,8 @@ protected void strokeImpl() {


@Override
protected void strokeFromCalc() {
super.strokeFromCalc();
protected void strokeFromCalc(float[] c) {
super.strokeFromCalc(c);
strokeColorObject = new Color(strokeColor, true);
strokeGradient = false;
}
Expand All @@ -2476,8 +2476,8 @@ protected void strokeFromCalc() {


@Override
protected void tintFromCalc() {
super.tintFromCalc();
protected void tintFromCalc(float[] c) {
super.tintFromCalc(c);
// TODO actually implement tinted images
tintColorObject = new Color(tintColor, true);
}
Expand All @@ -2492,8 +2492,8 @@ protected void tintFromCalc() {


@Override
protected void fillFromCalc() {
super.fillFromCalc();
protected void fillFromCalc(float[] c) {
super.fillFromCalc(c);
fillColorObject = new Color(fillColor, true);
fillGradient = false;
}
Expand Down
Loading