Subject: Re: [stella] Color bar generator From: jimn8@xxxxxxxxxx (Jim Nitchals) Date: Wed, 19 Mar 1997 09:44:05 -0800 (PST) |
> > Writting a programme to draw horizontal colour bars would be a piece of cake. > But vertical bars is a bit more difficult because you have to change the > the playfield graphics registers in mid scan line. > > Does anyone know what the pixels:cycles ratio for playfield graphics is? > Could you time it to change the graphic's colour register in mid-pixel to > get a higher resolution, or would it not accept the change until it finishes > the current pixel? The ratio of pixels to CPU cycles is 3:1 exactly. The fastest you could change colors is in 9 pixel increments: STA COLUMPF ; 3 cycles x 3 pixels per = 9 cycles STX COLUMPF STY COLUMPF But then you run out of registers and need time to reload. You can get extra mileage out of storing to COLUMBK and matching the timing against what's in the playfield data, and probably get single pixel colors, but not consistently across much of the screen. I don't see a way to get 16 even-width bars on one scanline. Eight should be doable, with 16 rows of bars to encompass the whole colormap. - Jim -- Archives available at http://www.biglist.com/lists/stella/archives/ E-mail UNSUBSCRIBE in the body to stella-request@xxxxxxxxxxx to be removed.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] Color bar generator, crackers | Thread | [stella] Rex Bradford says, Russ Perry Jr |
Re: [stella] Color bar generator, crackers | Date | [stella] 2600 Programming on Nexus, Lee Seitz |
Month |