Skip to content

Commit 036df40

Browse files
author
HarshKhandeparkar
committed
refactor: changeSpeed -> changeRate
1 parent e889db9 commit 036df40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/renderers/RealDrawBoard/tools/rainbow_brush.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ export const name = 'rainbow_brush';
99

1010
export interface RainbowBrushSettings {
1111
brushSize: number,
12-
changeSpeed: number
12+
changeRate: number
1313
}
1414

1515
export const RainbowBrushDefaults: RainbowBrushSettings = {
1616
brushSize: 1,
17-
changeSpeed: 1
17+
changeRate: 1
1818
}
1919

2020
export function _startStroke(
@@ -42,7 +42,7 @@ export function _doStroke(
4242
coords: [number, number],
4343
identifier: string
4444
) {
45-
hue = (hue + this.toolSettings.changeSpeed ) % 360;
45+
hue = (hue + this.toolSettings.changeRate) % 360;
4646
gradientColors = convertHSLToRGB(hue, 90, 40);
4747
this._plot(coords[0], coords[1], this.toolSettings.brushSize, gradientColors);
4848
this._stroke(coords[0], coords[1], this.toolSettings.brushSize, gradientColors, identifier);

0 commit comments

Comments
 (0)