Click or drag to resize

RGBShade Method

Shades (darkens) the item's color. If the r, g, b values are known, returns the HTML #rrggbb string of the color shaded by the specified percent. If the r, g, b values are not known, returns the original color string. See http://stackoverflow.com/questions/6615002/given-an-rgb-value-how-do-i-create-a-tint-or-shade for the simple shading algorithm.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public string Shade(
	double percent
)

Parameters

percent
Type: SystemDouble
The percent to shade, between 0 and 1, where 0.5 means 50% tinting.

Return Value

Type: String
The tinted value if r, g, b, are known, else the original color string.
See Also