Color coding

From emergent
Jump to: navigation, search

Color hints are used widely throughout emergent's interface to allow you to assess the attributes of elements at a glance.

Main project tree view

Foreground Colors

Type Color Example Description
docs, wizards and edits grey docs Only docs, wizards and edits have this color
data green data This is the standard color for datatables, datatable processing operations, data analysis, data functions, and image processing operations
programs red programs This is the standard color for programs
networks pink networks This is the standard color for networks
Viewers and miscellaneous objects black viewers Miscellaneous program objects that do not inherit the standard object colors above simply have a black font

Network Hierarchy Colors

}

Program Colors

Program Text Colors

The primary text colors for various program elements are as follows:

Type Color Example Description
Networks pink networks This is the standard color for networks
Spec Groups violet specs Any lower level spec grouping under the specs catagory will adopt the color of whichever specification is listed first in the sub-group
Unit Specifications violet LeabraUnitSpec This is the standard color for unit specs
Layers and Layer Specifications slate blue LeabraLayerSpec This is the standard color for layers and layer specs
Lesioned Layers grey highlight Hidden_Layer This layer is lesioned
Projection Specifications orange FullPrjnSpec This is the standard color for projection specs
Connection Specifications bright green LeabraConSpec This is the standard color for networks
Spec Not Used grey highlight FullPrjnSpec Applies to any type of spec
Program Element Text Color Example Description
Comment brick red NOTE: The following custom code is used to modify... Program comment
Ctrl purple return() Program keywords: return, for, while, if, stop/step, data loop
Function blue memb.mth() Program functions: meth(), memb.mth(), fun def, fun(), various other functions
Type lime green enum RndInitType (3 items) Program types: enumerated data types
objs, vars, or args goldenrod network = Network_0 (LeabraNetwork) Program variables: declarations and assignment statements
datatable functions green ResetDataRows of: input_data Program datatable functions/operations

Program Check Configuration (or compile) Indicator Colors

After check configuration is run program elements which contain problems are highlighted as follows:

Program Element Hightlight Color Example Description
Item contains invalid (child) item orange highlight SaveWeights Orange highlight used to indicate that the program or program element contains invalid item
Invalid Item red highlight network = NULL (network) Red highlight used to indicate invalid program items

Background Highlight Colors for program FLAGS

The background colors of programs are highlighted according to that program's flags as follows:

Flag Color Example Description
NO_STOP_STEP ivory highlight ApplyInputs Flag set on program. Don't stop at this program when the step button is pushed.
TRACE grey highlight LeabraStartUp Flag set on program. Record each line to the css console as this program runs.
STARTUP_RUN green highlight LeabraStartUp Flag set on program. Run this program when emergent starts.
LOCKED red highlight FooBarProgram Flag set on program. This program should not be edited.
OFF grey highlight Call ApplyInputs(network, input_data) Flag set on program element. Program element is off, or program variable or argument is unused
NON_STD yellow highlight Print: tag Flag set on program element. Program element is not part of the standard code for this program
NEW_EL green highlight network->Compute_ExtRew() Flag set on program element. Program element was flagged as new (used to highlight a recently added elements)
VERBOSE tan highlight network->SaveWeights(fname, Network::NET_FMT) Flag set on program element. Program element was flagged to print informative information about the operation of this program element when the program is running.
BREAKPOINT violet highlight if (compute_rel_netin) Flag set on program element. Breakpoint was set for the program element.

Background Highlight Colors for variable FLAGS

The background colors of variables within the programs are highlighted according to that variable's flags as follows:

Flag Color Example Description
SAVE VAL red highlight my_variable Highlights when SAVE VAL flag is not set on variable. Highlight indicates the value is not saved when exiting program.
*special grey highlight my_variable Automatic flag set on variable to indicate the variable is not used in the current program code. Color resets after initializing the program.