Re: trutwnkl.ex

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Wed, 4 Nov 1998, Hawke wrote:

> constant STAR_IMGMAP ={ {{0,1,0},{1,1,1},{0,1,0}},
>                         {{1,0,1},{0,1,0},{1,0,1}},
>                         {{0,1,0},{1,1,1},{0,1,0}}  }
>
> --this is for speed sake, fast erase
> constant CLEAR_IMGMAP={ {{0,0,0},{0,0,0},{0,0,0}},
>                         {{0,0,0},{0,0,0},{0,0,0}},
>                         {{0,0,0},{0,0,0},{0,0,0}}  }
>

Save yourself some typing:

constant
    CLEAR_IMGMAP = STAR_IMGMAP * 0-- or * BLACK

These kinds of trick are what I like about the Euphoria. If you
don't use them you're programming in another language!
I'd've stuck with QBasic or CBM BASIC V2 on my trusty C64...

--
Carl R White -- Final Year Computer Science at the University of Bradford
E-mail...: cyrek- at -bigfoot.com -- Remove the hyphens before mailing. Ta :)
URL......: http://www.bigfoot.com/~cyrek/
Ykk rnyllaqur rgiokc cea nyemdok ymc giququezka caysgr -- B.Q.Vgesa

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu