Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Image fade out [DBP function]

Author
Message
Yian
21
Years of Service
User Offline
Joined: 16th Jun 2003
Location: Nicosia, Cyprus(the Greek half)
Posted: 30th May 2006 22:57
*attatched*
this will work with almost all graphics cards,the reason I made it is because I couldn't fade out using the gamma command.The function uses memblock image manipulation,converting the rgb of each pixel to HSL and back,slowly decreasing the L(luminosity).
it has some problems,like the fact that it fades to black,and it's slowness..
the weird problem where it al goes green before going completely black,I'm working and would appreciate advice!!

thx/greetz

A study done by William Speyer, who was a victim of prison rape in 1989, shows that 34% of [prison] rape victims released from prison become child molestors.

Attachments

Login to view attachments
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Jun 2006 02:27 Edited at: 3rd Jun 2006 12:48
I haven't debugged my HSL routines yet, but I have got a set of working HSV routines - I've plugged them into your code, and it works just fine.

Your code modified:


My colour.dba file (just include in your project)


EDIT - BTW, my routines work with a Hue ranging from 0 to 360, ie degrees around the colour circle, and the Saturation and Value ranging from 0 to 1. The HSV_Build function encodes these into a single dword, making it easy to pass colour values around.

For free Plug-ins and source code http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2024-11-23 04:00:05
Your offset time is: 2024-11-23 04:00:05