Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving through a sepia color set, from dark to light ?
Message
De
31/05/2010 07:07:43
 
 
À
30/05/2010 18:26:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01466438
Message ID:
01466614
Vues:
47
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:)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform