Skip to content
Snippets Groups Projects
Commit 3a292c63 authored by bstrong5280's avatar bstrong5280
Browse files

plotter Smoothins

Change plotter smoothing strength
parent 88f02b6a
Branches master
No related merge requests found
Version 2.2
Change plotter smoothing strength.
Version 2.1
Revert plot history change, using too much CPU.
......
......@@ -96,7 +96,7 @@ Canvas {
data.paths[pointCnt].control2X = xLoc
data.paths[pointCnt].control2Y = yLoc
} else {
xDiff = ((data.paths[pointCnt - 1].x - xLoc) / 2)
xDiff = ((data.paths[pointCnt - 1].x - xLoc) / 3)
data.paths[pointCnt].control1X = data.paths[pointCnt - 1].x - xDiff
data.paths[pointCnt].control1Y = data.paths[pointCnt - 1].y
data.paths[pointCnt].control2X = xLoc + xDiff
......
......@@ -93,7 +93,7 @@ Canvas {
data.paths[pointCnt].control2X = xLoc
data.paths[pointCnt].control2Y = yLoc
} else {
xDiff = ((data.paths[pointCnt - 1].x - xLoc) / 2)
xDiff = ((data.paths[pointCnt - 1].x - xLoc) / 3)
data.paths[pointCnt].control1X = data.paths[pointCnt - 1].x - xDiff
data.paths[pointCnt].control1Y = data.paths[pointCnt - 1].y
data.paths[pointCnt].control2X = xLoc + xDiff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment