DarkenOrLighten     Procedure (Function)

Public Function DarkenOrLighten(Color As Long, DarkenFactor As Single) As Long

Returns a color value darker or lighter than Color by the amount "DarkenFactor".

ParameterTypeDescription

Color

Long

The color to be changed

DarkenFactor

Single

A factor between -1 and 1, which darkens or lightens "Color". Negative values lighten the color, positive values DarkenOrLighten it. 0 leaves the color the same, -1 is white, 1 is black.

Example..

x = ecGraph3D1.DarkenOrLighten(color, darkenfactor)


      Contents     Variables     Events     Properties     Functions     Subs

ecGraph3D    Copyright © 2008, Encore Consulting Pty Ltd