![]() |
Forum Index : Microcontroller and PC projects : PicoMite VGA Mode 1 Sprite Transparency ???
Author | Message | ||||
Sasquatch![]() Guru ![]() Joined: 08/05/2020 Location: United StatesPosts: 377 |
PicoMite VGA V5.07.05b15 Sprite transparency does not seem to be working in Mode 1 For example, This test program works in Mode 2 but the sprite is not transparent in Mode 1 CLS XMax = MM.HRes - 1 YMax = MM.VRes - 1 'Make a Sprite Line 10,0,10,20 Line 0,10,20,10 Circle 10,10,7 Sprite Read #1,0,0,20,20 CLS 'Put some art on the screen For X = 1 To 100 Line Rnd(0) * XMax,Rnd(0) * YMax,Rnd(0) * XMax,Rnd(0) * YMax Next X 'Now move the sprite across the screen For X = 10 To 300 Sprite Show #1,X,MM.VRes/2,1 Pause 10 Next X Regards, -Carl |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
I don't think it can. Mode 1 is a 2-colour mode, there is only foreground and background. It is superimposed over the TILE matrix to add some colour, you can't actually draw several different things in different colours. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
I sort of assumed no-one would use it so it hasn't been implemented. I'll look at it next time I open that code |
||||
Sasquatch![]() Guru ![]() Joined: 08/05/2020 Location: United StatesPosts: 377 |
Black or RGB(0,0,0) is the transparent "color" on the PicoMite VGA. I was trying to overlay a cursor sprite on Mode 1 graphics. The Sprite works perfectly but it has black square around it. I hadn't considered the color tiles, but I suppose they would also affect the Sprite color in Mode 1. -Carl |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
Tiles may make things interesting as they change both the foreground and background colours on a cell by cell basis. As you can (currently anyway) only have one of each at any one moment it might be like waving a rainbow around (where's Jeff MInter when you need him?). Very cool, but distinctly odd. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |