[futurebasic] Re: [FB] PRINT %(x,y) problesm after CIRCLE command

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1999 : Group Archive : Group : All Groups

From: Chris Pereira <pereira@...>
Date: Fri, 23 Apr 1999 08:41:57 -0400
On Fri, 23 Apr 1999, Masakazu Nakao wrote:

>I have a problems to get a right position to print on display
>after CIRCLE command.
>
>  FOR ddataX=0 TO count -1
>    x01%=FN ConvertXgraph2% (ddataX,maxX!,minX!,L,R)
>    CIRCLE FILL x01%, y01!, radius
>  NEXT ddataX


This is indeed a problem I've encountered before. Use:

CALL SETRECT(myCircleRect, x01%-radius, y01!-radius,
                           x01%+radius, y01!+radius )
CALL PAINTOVALRECT(myCircleRect)

also, use CALL FRAMEOVALRECT(myCircleRect) for drawing empty circles. 

Cheers,

_Chris