[futurebasic] Re: Drawing to the screen

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1998 : Group Archive : Group : All Groups

From: jonathan <jonathan@...>
Date: Ven, 25 Sep 98 18:11:37 +0200
>As you can see, the coordinates are not to screen scale and would need to 
>be scaled etc. Since all of this is vectors, and no bitmaps etc, would 
>you need gworlds? I would not have thought so.

Hi John (BTW, is a John, just a jonathan who got cut short?)

GWorlds is cosmetic. It's not about _needing_ the things, it's about
what does the end result look like. If your users can bear things
appearing in the screen, occasional flickers, that's fine, draw direct
to the window. The advantage of GWorlds is that you do all your
drawing and flickering where the user can't see it and then 'ZAP!'
blow it onto the screen like magic. It is up to you.

However, once you've got a taste for GWorlds, you'll realise just
how much neater, and more professional, it looks and you won't want
to go back.

(Aside - I don't mean to be nasty or ironic when I say it's a choice
(and ability) thing. When Matt B (Hi Matt!) released his first Mr
Cat's Quest - i thought it was great - yeah it's flickery and and
walked holes though some of Apple's HIG, but he did it and that was
the important achievement. Now he's doing more stuff and that's great
too. We all have to toddle, walk, then run before getting onto
triathalons - and personally I'm still using a baby-trainer)

As to the coords - I don't understand a thing but couldn't you
shape then up and then send them to a FN that does something like this?

CLEAR LOCAL MODE
DIM FirstPt&;0, fV, fH
DIM ScndPt&;0, sV, sH
FN drawForJohn( FirstPt&, ScndPt&)
LONG IF(( fV <> 0) AND( fH <> 0))
 CALL MOVETO( fV,fH)
END IF
CALL LINETO( sV,sH)
END FN

You would have a FN that reads your data, puts it into point
format and then calls the FN, which does the drawing. If the 
first point is empty, it just draws a line, else it does a move
to the first point and then draws a line.

HTH

jonathan




-------------------------------------------------------------
! "format utile"  studio de graphisme/graphic design studio !
!      32 bd de Menilmontant, 75020 Paris, France           !
!    phone +33 1 43 49 02 04 +++ fax +33 1 43 49 16 51      !
-------------------------------------------------------------
           *** coming soon to a browser near you ***
           <http://www.cybercities.com/formatutile>
-------------------------------------------------------------