
This code fragment changes the shape of cubicCurve so that the point defined by parameter value.25 is moved to TGPoint( 50, 100 ).
TFrameBundle frameBundle( TRGBColor( 0, 0, 0 ), 5.0 );
TGCurve cubicCurve( TGPoint( 25, 125 ),
TGPoint( 45, 200 ),
TGPoint( 95, 175 ),
TGPoint( 70, 150 ) );
cubicCurve.DragPosition( .25, TGPoint( 50, 100 ) );
thePort.Draw( cubicCurve, frameBundle );