Тёмный

Changing the CGA Palette in QuickBasic 

MontieMongoose
Подписаться 358
Просмотров 1,1 тыс.
50% 1

Опубликовано:

 

23 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@conradtrout
@conradtrout 2 года назад
So to break it down a bit and make it as clear as possible: As for the second argument of the OUT 985 statement: The first four bits set the background color. 1st bit (value: 1) = Toggle blue 2nd bit (value: 2) = Toggle green 3rd bit (value: 4) = Toggle red 4th bit (value: 8) = Toggle high intensity The next two bits set the foreground palette. 5th bit (value: 16) = Toggle high intensity 6th bit (value: 32) = Toggle warm/cold palette What your 'OUT 984, 46' seems to do is turn on the monochrome bit which gives you red instead of magenta in your palette when using a color display. Doesn't seem to work on the warm (brownish) palette. SCREEN 1, 1 has the same effect. With the COLOR statement you can alter between the warm and the cold palette, but you can only get the high intensity foreground palette by setting a high intensity background color, which is weird since it's clearly possible to have black as background and a high intensity foreground palette using your hack.
@techdistractions
@techdistractions Год назад
Great video - this has helped me on a little retro project I am working on :) After some experimenting I found performing a routine of SCREEN 2:SCREEN 1 or SCREEN 0:SCREEN 1 (to reset intensity bit) then putting in a range of OUT 985,0 through to OUT 985,65 produced standard 4 x MODE4 palettes with each of the 16 BG Colors. To get the MODE 5 Palette (5&6) I added OUT 984,46 to the routine and used ranges OUT 985,32 - OUT985,16. I can simply call my custom subs CGAPAL (1-6) and then CGACOL (0-15) and switch between any of the palette and BG colors.
@MontieMongoose
@MontieMongoose Год назад
Cool, I'll have to try this. I'd love to see your retro project too.
@tomyyoung2624
@tomyyoung2624 Год назад
Yes need to use!
@techdistractions
@techdistractions Год назад
@@MontieMongoose ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qjXJdw_U-8I.html&lc=UgzRAG9HNzQZ61DCBXZ4AaABAg :)
@earthsteward70
@earthsteward70 5 лет назад
4:53 looks so damn good, I'm shocked nobody used that for CGA.
@MontieMongoose
@MontieMongoose 5 лет назад
Agreed. They didn't use that palette nearly enough.
@bojanglesfries
@bojanglesfries 3 года назад
@@MontieMongoose The yellow - red - green palette also looks quite nice. It has a nice warm autumn feel to it.
@canalRetro269
@canalRetro269 Год назад
The cyan, B,W, magenta is that offer more contrast in colors. Buts i think is ugly.
@james_neko
@james_neko Год назад
Nice, I have been playing with QBasic SCREEN 1 and found it very strange that COLOR could only switch between the two dark palettes.
@wichtelchen
@wichtelchen 4 года назад
I barely remember one of the screen-related statements (screen, color, print...) had an optional extra parameter for selecting the cga palette in screen mode 1. I always used the one you can see at 4:00, because I hate the colors cyan and pink^^. No need to use OUT here ;).
@toysareforboys1
@toysareforboys1 5 лет назад
Neat video! I went from monochrome right to VGA so I didn't get to see CGA/EGA :(
@HtopSkills
@HtopSkills 5 лет назад
Good sharing
@tomyyoung2624
@tomyyoung2624 Год назад
yesbody used that for CGA.
@tomyyoung2624
@tomyyoung2624 Год назад
Yes need to use OUT here ;).
@intel386DX
@intel386DX 5 лет назад
Cool video! actually Alley cat use changing background color in aquarium section :)
@MontieMongoose
@MontieMongoose 5 лет назад
Very true. Some games used alternate color palettes, and switched in the middle of gameplay, but most did not.
@intel386DX
@intel386DX 5 лет назад
@@MontieMongoose yes :(
@intel386DX
@intel386DX 5 лет назад
@@MontieMongoose take a look :) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-mKNkKj-twxE.html
Далее
16 Colour Games on a CGA Card!
17:33
Просмотров 9 тыс.
Cool Wrap! My Book is OUT 🥳
00:27
Просмотров 1,7 млн
Тупой и ещё тупее. (и поддоны)
00:37
New Graphics Modes for Planet X3
6:49
Просмотров 832
The Packrat MS DOS SpeedrunWorld record
8:16
What is the Smallest Possible .EXE?
17:04
Просмотров 436 тыс.
Just enough assembly to blow your mind
29:31
Просмотров 107 тыс.
Harder Drive: Hard drives we didn't want or need
36:47
The Tragedy of systemd
47:18
Просмотров 1,1 млн
CGA Graphics - Not as bad as you thought!
11:27
Просмотров 2,3 млн
I Created My Own Custom 3D Graphics Engine
26:29
Просмотров 99 тыс.