[futurebasic] RE: [FB] scaling, centering and rotating

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2005 : Group Archive : Group : All Groups

From: SVANVOORST@...
Date: Thu, 3 Mar 2005 23:43:27 EST
Waverly:

Nice demo.   It appears that you want the rectangle to rotate 2 degrees at a 
time until it has made one revolution ( ie, 180 x 2 = 360)

for angle = 0 to 180 // angle in degrees
fn rotateOnCenter( ctx, cgR, 2 )// already been scaled, dont scale again
fn CGContextStrokeRect( ctx, cgR )// display destination rect
fn CGContextFlush( ctx )// force drawing display
delay _secTenth// give a delay so you can see changes
fn cgEraseRect( ctx , cgR , clr )
next

Steve Van Voorst

--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@...