How To

reload palette from file

1

G-9 2022-09-25 20:33

let's say i just edited the palette with PALETTE command but now i want to revert it back. how do i do that?

also guess who just woke up


McPepic 2022-09-25 21:22

If the original palette is in the ROM, you could just use the COPY command to move it back into the color registers. This is what LowRes does by default at the start of a program anyways.


was8bit 2022-09-26 02:26 (Edited)

Alternatively if you only changed one of the 3 colors, you can save the one color, then reload it...

C=COLOR(pal#,1)
to save color 1 from pal#
PALETTE pal#,,52,,
To temporarily change a single color
PALETTE pal#,,C,,

To restore the single color


G-9 2022-09-26 09:13

@was8bit yup, but i'm editing all the colors of the 8 palettes, and creating a variable for each wouldn't be very smart
@McPepic ty, how do i do that?


Timo 2022-09-26 12:11

Should be

COPY ROM(1),SIZE(1) TO $FF00


was8bit 2022-09-26 12:16

Are you randomly changing colors, or are you swapping to a preset set of colors?

It is possible to create more than one set of color files...


G-9 2022-09-27 13:55

I'm actually doing both ;)


was8bit 2022-09-27 15:18

Ah, well you have many options to chose from ;)

I love how lowresNX emulates real hardware :)


Log in to reply.