Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving through a sepia color set, from dark to light ?
Message
From
31/05/2010 07:07:43
 
 
To
30/05/2010 18:26:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01466438
Message ID:
01466614
Views:
46
The UT is a great place.

Thank you Carlos, and all the ones who shared :)

In the end, the minimal code looks like:

FUNCTION sepia_tone

LPARAMETERS iColorId,iColorCount

DECLARE INTEGER ColorAdjustLuma IN shlwapi.DLL SHORT iRGB, SHORT iLuminance, SHORT iRelativeColor

RETURN GETCOLOR(ColorAdjustLuma(RGB(112,66,20),INT(iColorId*1000/iColorCount),0))

As long as dependancies do not get in the way, the shorter the better.... I'll take that at this stage:)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform