Main page /  Useful info about ShapeSheet™  / Visio ShapeSheet reference / ShapeSheet™. List of functions by category

ShapeSheet. Category Color functions

Note

This table contain functions which included in table for similar category in the book MS Visio 2003 Developer’s Survival Pack by Graham Wideman (see chapter 37) and also functions added in later versions.

The version information in which the function was added is taken from John's Goldsmith article Visio ShapeSheet Functions by Version


Name

Details

BLEND

Version Added: 2007

Blends two colors in the proportion specified by the float parameter.

Syntax

BLEND(color1,color2,float[0,1])

Read more about function BLEND

BLUE

Version Added: Pre 2003

Returns the blue component of a color. The return value is an integer in the range of 0 to 255, inclusive. The function returns 0 for invalid input.

Syntax

BLUE(expression)

Read more about function BLUE

GREEN

Version Added: Pre 2003

Returns the green component of a color.

Syntax

GREEN(expression)

Read more about function GREEN

HSL

Version Added: Pre 2003

Returns a value representing an index in the document's color palette. It specifies a color by its hue, saturation, and luminosity components.

Syntax

HSL(hue,saturation,luminosity)

Read more about function HSL

HUE

Version Added: 2007

Returns the value of a color's hue component.

Syntax

HUE(expression)

Read more about function HUE

HUEDIFF

Version Added: Pre 2003

Returns the difference in hue between color1 and color2.

Syntax

HUEDIFF(color1,color2)

Read more about function HUEDIFF

LUM

Version Added: Pre 2003

Returns the value of a color's luminosity component.

Syntax

LUM(expression)

Read more about function LUM

LUMDIFF

Version Added: 2007

Returns the difference in luminosity between color1 and color2.

Syntax

LUMDIFF(color1,color2)

Read more about function LUMDIFF

MSOSHADE

Version Added: 2010

Modifies the color by decreasing its luminosity by the specified percentage.

Syntax

MSOSHADE(color,-deltaLum)

Read more about function MSOSHADE

MSOTINT

Version Added: 2010

Modifies the color by increasing its luminosity by the specified percentage.

Syntax

MSOTINT(color,deltaLum)

Read more about function MSOTINT

RED

Version Added: Pre 2003

Returns the red component of a color.

Syntax

RED(expression)

Read more about function RED

RGB

Version Added: Pre 2003

Returns a value representing an index in the document's color palette. It specifies a color by its red, green, and blue components, where each is a number in the range 0 to 255, inclusive, or an expression that evaluates to such a number.

Syntax

RGB(red,green,blue)

Read more about function RGB

SAT

Version Added: Pre 2003

Returns the value of a color's saturation component.

Syntax

SAT(expression)

Read more about function SAT

SATDIFF

Version Added: 2007

Returns the difference in saturation between color1 and color2.

Syntax

SATDIFF(color1,color2)

Read more about function SATDIFF

SHADE

Version Added: 2007

Modifies the color by decreasing its luminosity by the amount (positive or negative) specified in the int parameter.

Syntax

SHADE(color,int)

Read more about function SHADE

TINT

Version Added: 2007

Modifies the color by increasing its luminosity by the amount (positive or negative) specified in the int parameter.

Syntax

TINT(color,int)

Read more about function TINT

TONE

Version Added: 2007

Modifies the color by decreasing its saturation by the amount specified in the int parameter.

Syntax

TONE(color,int)

Read more about function TONE