diff options
| author | Tim Redfern <tim@getdrop.com> | 2017-12-15 09:24:22 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2017-12-15 09:24:22 +0000 |
| commit | 3418dd0859106791d5534c53b901c2be4ea6b4c4 (patch) | |
| tree | cfa88e599b5e94867bd4dc74a171b9a57e01af41 /gui/src/chainImage.cpp | |
| parent | 75094cedeb1910d8a7cdb86ac56617af25f21a54 (diff) | |
better paths
Diffstat (limited to 'gui/src/chainImage.cpp')
| -rw-r--r-- | gui/src/chainImage.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/src/chainImage.cpp b/gui/src/chainImage.cpp index 5a24c7b..7192fdc 100644 --- a/gui/src/chainImage.cpp +++ b/gui/src/chainImage.cpp @@ -130,6 +130,11 @@ void chainImage::updateRotationTimeline(){ } +ofPoint chainImage::getPathPoint(){ + //printf("get point at transition: %f \n",transition); + return path.getPointAtLength(transition); +} + int chainImage::updateOutput(float decayRatio){ //where there is rotation of the link, the path needs to be rotated @@ -150,7 +155,7 @@ int chainImage::updateOutput(float decayRatio){ ofPoint previous=getLinkPos()+(rotated_destination*getLinkScale()*(1.0f-BEZIER_IN)); path.bezierTo( - getLinkPos().x*(1.0f+BEZIER_OUT),getLinkPos().y*(1.0f+BEZIER_OUT), + getLinkPos().x*(1.0f+(BEZIER_OUT*linkScale)),getLinkPos().y*(1.0f+(BEZIER_OUT*linkScale)), previous.x,previous.y, destination.x,destination.y); |
