get rgb values

Door TheKid

Paladin (808)

afbeelding van TheKid

20-07-2017, 18:22

Hi there,

I was wondering how to get the rgb values of a color in msx basic ?
If you for instance want to change a color, you can use color=(5,1,2,3).
But what command do I need to get the rgb values of color 5 ?

Aangemeld of registreer om reacties te plaatsen

Van Lord_Zett

Paladin (807)

afbeelding van Lord_Zett

20-07-2017, 19:42

i thought you need to vpeek the adres.

Van NYYRIKKI

Enlighted (5366)

afbeelding van NYYRIKKI

20-07-2017, 19:51

Yes, the VRAM addresses are explained in here

How ever if the software is not nice and does not update these values in VRAM then the information is permanently lost inside VDP and you can't figure it out anymore... This is pretty typical in games and demos... Naturally in emulators you can use the debugger interface to figure them out anyway.

Van TheKid

Paladin (808)

afbeelding van TheKid

20-07-2017, 22:28

okay, thanx guys, I will try this approach.

Van Meits

Scribe (5492)

afbeelding van Meits

21-07-2017, 01:54

openMSX can show it:
Advanced -> Toys... -> show palette

Proved its use to me quite a few times already Smile

Van TheKid

Paladin (808)

afbeelding van TheKid

21-07-2017, 15:32

@Meits: Nice find Smile

Van Meits

Scribe (5492)

afbeelding van Meits

21-07-2017, 17:34

the fun is that it's always visible and thus it shows fades as well. Very nice Smile

Van Manuel

Ascended (15696)

afbeelding van Manuel

22-07-2017, 00:06

TheKid wrote:

@Meits: Nice find Smile

Hah, easy to find, it's even documented ;-) See http://openmsx.org/manual/commands.html#other