computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit e231f455ecd3770071d647541c54c9d71e081f8e
parent 29a640eea4def47827bccaefa3e1033193cbd0a2
Author: Adam <[email protected]>
Date:   Wed, 13 Nov 2019 15:42:40 -0600

Add the head to stoly fick pigure
Diffstat:
Msrc/ComputerscareStolyFickPigure.cpp | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/ComputerscareStolyFickPigure.cpp b/src/ComputerscareStolyFickPigure.cpp @@ -226,6 +226,15 @@ struct StolyFickPigureDisplay : TransparentWidget { nvgLineTo(args.vg,rightHandX,rightHandY); nvgStroke(args.vg); + float headHeight = torsoLength*(0.5+sin(H-E-A-D)/6-sin(F+A-C+E)/7); + float headWidth = headHeight*(0.5+sin(I+D-M/2)/7+sin(G/2+J-10)/6); + float headAngle = M_PI/2 + (sin(C+K)/6+sin(D+G)/9); + + nvgBeginPath(args.vg); + nvgMoveTo(args.vg,neckX,neckY); + nvgEllipse(args.vg, 0,0,headWidth,headHeight); + nvgFill(args.vg); + nvgStroke(args.vg); //nvgGlobalCompositeOperation(args.vg, NVG_ATOP);