[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apple logo in Lores
"Simon D. Williams" <bb065@chebucto.ns.ca> wrote in message
Pine.GSO.4.64.0809010502310.13301@halifax.chebucto.ns.ca">news:Pine.GSO.4.64.0809010502310.13301@halifax.chebucto.ns.ca...
> On Mon, 1 Sep 2008, limtc wrote:
>
>> If someone is able to reproduce a better one, I will animate it...
>
> Here's my attempt: http://www.ld8.org/images/lodraw_apple_logo.gif
>
> Unfortunately lodraw apparently doesn't produce executable code, so it
> would still need translating into basic, but I think the low budget
> antialiasing improves things a little (still needs about 10 feet and a
> good squint though).
>
> ] SIMON D WILLIAMS
Haha nice - someone is using Lodraw!
I did write a really shoddy graphics utility to take a complete lores screen
and turn it into applesoft code.
Unfortunately, I didn't extend much effort on it though. Just took each
character from screen memory and
turned it into a for-next / read / poke routine. It can put a complete
screen up reasonably quickly as far as
applesoft basic and drawing are concerned. It is however neither elegant
nor is it efficient.
Picture this, the main 'drawing' loop:
210 GR : HOME : DIM B(20)
220 FOR I = 1 TO 20: READ B : B(I)=B: NEXT I
230 FOR K=1 TO 20 : X1=B(K) : FOR I = X1 TO X1+39 : READ A : POKE I,A : NEXT
I,K
The B Array is used for storing the decimal starting lines of each
horizontal line on the lores screen
i.e.
5 DATA 1024,1152,1280,1408,1536,1664,1792,1920,1064,
1192,1320,1448,1576,1704,1832,1960,1104,1232,1360,1488
And the remainder of the data statements contain the image data.
Took a simple applesoft program to read the screen data, and write it into a
Textfile as applesoft code.
Once the user clears memory with the NEW command and then exec's the
textfile, it creates the applesoft.
The huge drawback - is even ONE screen of lores done this way is big.
Doesn't support animation in the
least, and is pretty slow to put a screen in compared to just appending the
screen to the end of the applesoft
program and using a Machine language routine to blast into GR page 1 and
display the picture.
Imagine applesoft code taking 12 sectors to draw a simple screen. Ugh
Cheers,
Craig