Please enable JavaScript to view this site.

Creates a more dark version of the specified color by darken it by a percentage.

 

int ColorDarken(int argb; int percentage)

 

argb

Color represented as a 32-bit integer.

percentage

The percentage to darken the color by.

Example

ColorDarken(ColorFromArgb(255; 0; 100; 255); 20)

Darkens each component of R, G and B with 51 (20% of 255) and returns the resulting color i.e. argb(255, 0, 49, 204).

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC