Je cherche ces 2 fonctions, ca permetterait de passer une couleur RGB, avec un seuil et ca renverrait une couleur RGB soit + sombre (darken) ou plus claire (lighten).
Bizarrement je trouve pas ca sur vbfrance.
Un appel serait :
dim col as long
col = lighten(rgb(80,80,80), 10)
Y a bien cette source :
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=55137&lngWId=1
Mais le mec a declaré tous en Variant avec ces :
dim a, b, c as Long
"a" et "b" sont Variant, "c" est Long seulement. Et modifier ca, ca crash dans certains cas, autant tout recoder.
'-/