NotesColorObject (LotusScript®)

Represents a color.

Note: This class is new with Release 6.

Containment

Contained by: NotesRichTextSection, NotesRichTextTable, NotesSession

Properties

Blue

Green

Hue

Luminance

NotesColor

Red

Saturation

Methods

SetHSL

SetRGB

Creation

To create a NotesColorObject object, use the Position method of NotesSession.

Usage

Domino® defines colors numbered 0 through 240, as reflected in the read-write property NotesColor. Each Domino® color maps to RGB (red, green, and blue) values in the range 0-255 and HSL (hue, saturation, and luminance) values in the range 0-240, as reflected in the remaining, read-only properties.

NotesColor can be used as the value for the following properties: NotesColor in NotesRichTextStyle; BackgroundColor in NotesView; Position and HeaderFontColor in NotesViewColumn.

The following table lists the values for the first 16 Domino® colors, which are defined by LotusScript® constants. See the example for code to generate the values for all 241 colors.

Notes®

Red

Green

Blue

Hue

Sat

Lum

Constant

0

0

0

0

160

0

0

COLOR_BLACK

1

255

255

255

160

0

240

COLOR_WHITE

2

255

0

0

0

240

120

COLOR_RED

3

0

255

0

80

240

120

COLOR_GREEN

4

0

0

255

160

240

120

COLOR_BLUE

5

255

0

255

200

240

120

COLOR_MAGENTA

6

255

255

0

40

240

120

COLOR_YELLOW

7

0

255

255

120

240

120

COLOR_CYAN

8

128

0

0

0

240

60

COLOR_DARK_RED

9

0

128

0

80

240

60

COLOR_DARK_GREEN

10

0

0

128

160

240

60

COLOR_DARK_BLUE

11

128

0

128

200

240

60

COLOR_DARK_MAGENTA

12

128

128

0

40

240

60

COLOR_DARK_YELLOW

13

0

128

128

120

240

60

COLOR_DARK_CYAN

14

128

128

128

160

0

120

COLOR_GRAY

15

192

192

192

160

0

181

COLOR_LIGHT_GRAY

Example