...
How
...
is
...
the
...
color
...
value
...
specified
...
in
...
the
...
database
...
table?
...
Answer:
...
Each
...
color
...
has
...
a
...
designated
...
RGB
...
value.
...
The
...
integer
...
value
...
(long)
...
may
...
be
...
calculated
...
for
...
the
...
color
...
parameter,
...
then
...
specified
...
in
...
the
...
database
...
table,
...
through
...
the
...
following
...
formula:
...
- Color
...
- parameter
...
- =
...
- R
...
- +
...
- G
...
- *
...
- 256
...
- +
...
- B
...
- *
...
- 2562
where R,
...
- G,
...
- and
...
- B
...
- may
...
- be
...
- 0
...
- -
...
- 255
...
For
...
example,
...
blue
...
has
...
a
...
RGB
...
value
...
of
...
(0,
...
0,
...
255),
...
therefore
...
its
...
color
...
parameter
...
is
...
0
...
+
...
0
...
*
...
256
...
+
...
255
...
*
...
256
...
2 =
...
16711680.
...