NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: fading effect  
Posted byDrag
Posted on10/9/04 10:44 PM
From IP69.243.0.34  



Not quite...

Just like you can fade the palette to black, a SOLID black color, everything is black, there has GOT to be a way to fade the palette to a different color, such as red, green, or any other color that's on the palette.
How would I go about doing it though? I'd have to either use a table, but that leaves less flexibility.

Seems like there's no easy way to do this without using a table. o_O
Well, let me think for a sec...

To make a simple gradient, you add color x to color y, gradually. To fade from cyan to red, I add red to the cyan, which makes white, I half the color, making grey, and remove the not-red components, and add the red back, making red.

To fade from red to green, I add green to red, making yellow, half it, making a weird color, remove the red from the weird color, and re-add green, and green comes out.

It's just a matter of converting this logic into the number form, following the nes palette.

It'll be easier to work with a visual.

Any other suggestions?

- Drag

-
Entire Thread
Subject  Posted byPosted On
*fading effect  sunnychu9/22/04 04:52 AM
.*Re: fading effect  Memblers9/22/04 1:46 PM
..*Re: fading effect  Bregalad9/23/04 6:57 PM
...*Re: fading effect  Drag10/9/04 01:05 AM
....*Re: fading effect  Anonymous10/9/04 12:07 PM
......Re: fading effect  Drag10/9/04 10:44 PM
......*Re: fading effect  tepples10/12/04 05:18 AM
.......*Re: fading effect  abonetochew10/15/04 02:09 AM
........*Re: fading effect  Bregalad10/15/04 10:42 AM
.*Re: fading effect  koitsu9/22/04 05:57 AM
..*How to do an HSV fade  tepples9/22/04 06:10 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo