Table of Contents

Method ApplyShade

Namespace
DocWright.Layout
Assembly
DocWright.Layout.dll

ApplyShade(ColorRgb, byte)

Applies a w:themeShade transform: luminance moves toward black in HSL space (L' = L·shade/255); 0xFF is identity, 0x00 is black.

public static ColorRgb ApplyShade(ColorRgb color, byte shade)

Parameters

color ColorRgb

The base color.

shade byte

The shade byte.

Returns

ColorRgb

The shaded color.