Skip to content

Commit e37519b

Browse files
author
HarshKhandeparkar
committed
refactor: this.interpolate -> this._interpolateKernel
1 parent f7b3896 commit e37519b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderers/RealComplexSpace.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class RealComplexSpace extends RealRenderer {
2323
this._plotComplexPersistent = getPlotComplexKernel(this.gpu, this.dimensions, this.brushSize, this.brushColor, this.xScaleFactor, this.yScaleFactor, this.xOffset, this.yOffset);
2424
this.Complex = Complex;
2525

26-
this.interpolate = getInterpolateKernel(this.gpu, this.dimensions, this.xScaleFactor, this.yScaleFactor, this.xOffset, this.yOffset, this.lineThickness, this.lineColor);
26+
this._interpolateKernel = getInterpolateKernel(this.gpu, this.dimensions, this.xScaleFactor, this.yScaleFactor, this.xOffset, this.yOffset, this.lineThickness, this.lineColor);
2727
}
2828

2929
/**
@@ -57,7 +57,7 @@ class RealComplexSpace extends RealRenderer {
5757
}
5858

5959
_interpolate(graphPixels, n1, n2) {
60-
graphPixels = this.interpolate(this._cloneTexture(graphPixels), [n1.x, n1.y], [n2.x, n2.y]);
60+
graphPixels = this._interpolateKernel(this._cloneTexture(graphPixels), [n1.x, n1.y], [n2.x, n2.y]);
6161

6262
return graphPixels;
6363
}

0 commit comments

Comments
 (0)