Design and Colors


  [Home] [1 Intro] [2 Resp.-Anal.] [3 JavaScript] [4 JS Interf.] [5 Design] [6 Special] [7 Java-Interf.] [Reference

Content:

 

GeoStyle-File

The GeoStyle-File has two important functions: First all system variables are declared and set to the right values. Second, every geometrical object type is mapped to a special color scheme.

The list of system variables is described in the reference.

The color scheme is give in a table:

//
// Table: Default color values for geometrical objects
//

<elementTable>
//
// Object-  Object-        Caption-  Point-  Line-  Face-  Shape-
// class:   subclass:      Color:    Color:  Color: Color: Constant:
//
   point;   dragable;      black;    red;    black; 0;     smallCircle
   point;   functionDepend;black;    blue;   black; 0;     smallCircle
   point;   fixed;         black;    black;  0;     0;     smallSquare
   line;    connect;       black;    0;      blue;  0;
   line;    straightline;  black;    0;      black; 0;
   line;    pointSet;      0;        blue;   blue;  blue;
   line;    curve;         0;        0;      gray;  0;
   circle;  radius;        0;        0;      blue;  0;
   polygon; polygon;       0;        0;      black; 0;
</elementTable>

 

Object Colors

There are two alternative ways to define a color value. The first possibility is to use the rgb-scheme by a triple of numbers r, g, b separated by commata, where 0 £ r, g, b £ 255.

The second way is to use a predefined color value, like: black , blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, yellow, random (a randomly chosen color), brighter (as the background) and darker (as the background).

If no special color should be defined, use the value 0.

 
Choose Color:
  Code