Skip to content

Commit

Permalink
Support PaintDef in CanvasLinePlot.setStroke, see phetsims/bamboo#16
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 6, 2021
1 parent e24da7b commit 29e4da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/discrete/view/HarmonicsChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,14 @@ class HarmonicsChart extends DiscreteChart {

// no emphasis, all plots have their normal color and lineWidth
plot.lineWidth = NORMAL_LINE_WIDTH;
plot.setStroke( plot.harmonic.colorProperty.value );
plot.setStroke( plot.harmonic.colorProperty );
}
else {

// emphasize some plots, de-emphasize other plots
if ( emphasizedHarmonics.includes( plot.harmonic ) ) {
plot.lineWidth = EMPHASIZED_LINE_WIDTH;
plot.setStroke( plot.harmonic.colorProperty.value );
plot.setStroke( plot.harmonic.colorProperty );
}
else {
plot.lineWidth = DE_EMPHASIZED_LINE_WIDTH;
Expand Down

0 comments on commit 29e4da8

Please sign in to comment.