Welcome, Guest. Please login or register.

Author Topic: LoadRGB32/Palette/Parts_os_Screen  (Read 2816 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: LoadRGB32/Palette/Parts_os_Screen
« on: October 05, 2007, 08:05:05 AM »
Only use subset of colours for the part of the screen you want to change. That's the only truly portable (AGA, CGX and P96) and fast way.

So if you have same colours used for the different parts (non-fading and fading) you'll need to have duplicate colours initially.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: LoadRGB32/Palette/Parts_os_Screen
« Reply #1 on: October 05, 2007, 09:14:47 AM »
Say you have two copies of the same image side by side and you want to fade the left one (and do NOT want to fade the right one).

In this case you have the same palette twice, with duplicate colours. Initially the palettes are the same. When you fade, you only change colours in one of the palettes.

Obviously if the fading part initially has totally different colours then you don't have dupes.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: LoadRGB32/Palette/Parts_os_Screen
« Reply #2 on: October 05, 2007, 09:46:34 AM »
For example. The palette can be split in whatever way you want.

The point is that you have the gfx you want to fade drawn using only part of the colours on the screen and you change these colours.