is there a way to use reverse characters in multicolor mode?
Moderator: Moderators
is there a way to use reverse characters in multicolor mode?
i want to use the reversed space character. is this possible? i dont really want to have to redefine a character/multicolor character to do this. i just want to set a black background using the reversed space.
Re: is there a way to use reverse characters in multicolor mode?
The reversed space will take the color of the auxiliary color (top 4 bits in $900e).
So you can surely fill the screen with these, but keep in mind one of the other two global colors will be the border-color. I usually prefer setting the border-color to the desired background colour in multicolor-mode so that the border does not stand out.
So you can surely fill the screen with these, but keep in mind one of the other two global colors will be the border-color. I usually prefer setting the border-color to the desired background colour in multicolor-mode so that the border does not stand out.
Re: is there a way to use reverse characters in multicolor mode?
that wouldnt give me black with my setup. my border color (black) is the desired background color
- chysn
- Vic 20 Scientist
- Posts: 1205
- Joined: Tue Oct 22, 2019 12:36 pm
- Website: http://www.beigemaze.com
- Location: Michigan, USA
- Occupation: Software Dev Manager
Re: is there a way to use reverse characters in multicolor mode?
Keep in mind that multi-color mode is selected on a per-character basis by setting bit 3 in color memory. So if you want the reversed space to be black, there's no reason to use multi-color mode. The reversed space is, by definition, a mono-chromatic thing.
There is at least one good reason to use multi-color mode with reversed spaces, though; it allows you to have a block be any of the 16 available colors by (as tokra said) setting the aux color. I did exactly this in a recent game, where I wanted large swaths of orange, which isn't available outside multi-color mode.
But for black... just make it black.
VIC-20 Projects: wAx Assembler, TRBo: Turtle RescueBot, Helix Colony, Sub Med, Trolley Problem, Dungeon of Dance, ZEPTOPOLIS, MIDI KERNAL, The Archivist, Ed for Prophet-5
WIP: MIDIcast BASIC extension
he/him/his
WIP: MIDIcast BASIC extension
he/him/his
Re: is there a way to use reverse characters in multicolor mode?
Code: Select all
10 print"[clear}"
100 poke36869, 255
104 poke38400,0
105 poke7680,160
106 print">>>>>>"
110 fori = 7168to7679
: pokei, peek(i + 2560
0): next
130 fori = 7176to7191
150 reada : pokei, a :
next
154 x = 7690 : c = 307
20
155 pokex, 1 : pokex +
c, 10 : pokex + 1, 2
: pokex + c + 1, 10
156 fort = 1to80 : nex
t : pokex, 32 : pokex
+ 1, 32
157 x = x + 22 : ifx>
8185then154
158 goto155
160 data93,87,90,104,1
70,162,170,125,117,213
,165,41 ,170, 138,170
,125
400 forf=0to512
410 print">";
420 next
1000 fori=7664to7671:p
okei,peek(i+26384 ):n
ext
- chysn
- Vic 20 Scientist
- Posts: 1205
- Joined: Tue Oct 22, 2019 12:36 pm
- Website: http://www.beigemaze.com
- Location: Michigan, USA
- Occupation: Software Dev Manager
Re: is there a way to use reverse characters in multicolor mode?
Looks good, it's a nice character. Is there something that's not working that you think should be working differently?
VIC-20 Projects: wAx Assembler, TRBo: Turtle RescueBot, Helix Colony, Sub Med, Trolley Problem, Dungeon of Dance, ZEPTOPOLIS, MIDI KERNAL, The Archivist, Ed for Prophet-5
WIP: MIDIcast BASIC extension
he/him/his
WIP: MIDIcast BASIC extension
he/him/his
Re: is there a way to use reverse characters in multicolor mode?
the '>' characters should be blocks but they just disappear back to '>' s
- chysn
- Vic 20 Scientist
- Posts: 1205
- Joined: Tue Oct 22, 2019 12:36 pm
- Website: http://www.beigemaze.com
- Location: Michigan, USA
- Occupation: Software Dev Manager
Re: is there a way to use reverse characters in multicolor mode?
I see nothing in your code that would redefine > as a block. On what line number do you think this is happening?
Last edited by chysn on Tue Feb 23, 2021 11:51 am, edited 1 time in total.
Re: is there a way to use reverse characters in multicolor mode?
1000, goto 1000.
sorry, add this line.
20 data 255,255,255,255,255,255,255,255
sorry, add this line.
20 data 255,255,255,255,255,255,255,255
- chysn
- Vic 20 Scientist
- Posts: 1205
- Joined: Tue Oct 22, 2019 12:36 pm
- Website: http://www.beigemaze.com
- Location: Michigan, USA
- Occupation: Software Dev Manager
Re: is there a way to use reverse characters in multicolor mode?
OK, I see. So, yes, every time you run your program, the loop at line 110 will reset the whole character set back to the ROM characters. That's where the custom > character is being set back to its ROM counterpart.
The code at 1000 is not executed during a RUN of this code, which may be at least one part of the problem.
The code at 1000 is not executed during a RUN of this code, which may be at least one part of the problem.
Re: is there a way to use reverse characters in multicolor mode?
chysn wrote: ↑Tue Feb 23, 2021 11:50 am OK, I see. So, yes, every time you run your program, the loop at line 110 will reset the whole character set back to the ROM characters. That's where the custom > character is being set back to its ROM counterpart.
The code at 1000 is not executed during a RUN of this code, which may be at least one part of the problem.
sorry wrong bit of code, line 1000 should be:
1000 forc=7328to7335:r
eada:pokec,a:next
i type goto 1000, then run it...
that gets around that problem...
Re: is there a way to use reverse characters in multicolor mode?
ok, so i got it working by deleting line 110. the problem now is that the sprite clears a green line down the screen.
i guess i may have to use a black box sprite to do this?
i guess i may have to use a black box sprite to do this?
- chysn
- Vic 20 Scientist
- Posts: 1205
- Joined: Tue Oct 22, 2019 12:36 pm
- Website: http://www.beigemaze.com
- Location: Michigan, USA
- Occupation: Software Dev Manager
Re: is there a way to use reverse characters in multicolor mode?
Yeah, right now you're using 32 to clear the character's last position, which will be the background color.
Re: is there a way to use reverse characters in multicolor mode?
ok, so what number do i use? ive tried 0-255 and none of them are black, i dont think
Re: is there a way to use reverse characters in multicolor mode?
http://www.sleepingelephant.com/denial/ ... draft3.pdf
Standard characters are 0-127
Reversed add 128
So try 160
Vic20-Ian
The best things in life are Vic-20
Upgrade all new gadgets and mobiles to 3583 Bytes Free today! Ready
The best things in life are Vic-20
Upgrade all new gadgets and mobiles to 3583 Bytes Free today! Ready