Skip to content

Commit 4dcc8a2

Browse files
committed
CSSTUDIO-3392 Add documentation to examples:color.def.
1 parent f14f147 commit 4dcc8a2

File tree

1 file changed

+13
-1
lines changed
  • app/display/model/src/main/resources/examples

1 file changed

+13
-1
lines changed

app/display/model/src/main/resources/examples/color.def

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
# Named colors
22
#
33
# Format:
4-
# NameOfColor = red, green, blue [, alpha ] | PreviouslyDefinedNameOfColor
4+
# NameOfColor = red, green, blue [, alpha ] | PreviouslyDefinedNameOfColor | alias(PreviouslyDefinedNameOfColor)
55
# with values in 0..255 range.
66
#
77
# Whenever possible, use named colors in displays
88
# instead of arbitrary red/green/blue values.
9+
#
10+
# Writing 'NameOfColor = PreviouslyDefinedNameOfColor' defines
11+
# a new color with the name 'NameOfColor', whose RGB-values
12+
# are identical to the RGB-values of 'PreviouslyDefinedNameOfColor'.
13+
#
14+
# In contrast, writing 'NameOfColor = alias(PreviouslyDefinedNameOfColor)'
15+
# will result in the color name 'NameOfColor' redirecting to the color
16+
# 'PreviouslyDefinedNameOfColor'. The effect is that the color
17+
# 'PreviouslyDefinedColor' replaces occurrences of the color 'NameOfColor'.
18+
#
19+
# Color names as well as the keyword 'alias' are case-sensitive.
20+
#
921

1022
# ------- Predefined colors ----------------
1123
# May be overridden in here

0 commit comments

Comments
 (0)