Skip to content
Snippets Groups Projects
Commit b4cb48f1 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Minor fixes
parent 11758ffb
No related branches found
No related tags found
No related merge requests found
\input texinfo.tex @c -*-texinfo-*- \input texinfo.tex @c -*-texinfo-*-
@c $Id: gmsh.texi,v 1.24 2003-04-16 08:11:17 geuzaine Exp $ @c $Id: gmsh.texi,v 1.25 2003-04-16 08:23:28 geuzaine Exp $
@c @c
@c Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle @c Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
@c @c
...@@ -803,7 +803,7 @@ while affecting a value to an existing @var{expression-id}, using: ...@@ -803,7 +803,7 @@ while affecting a value to an existing @var{expression-id}, using:
@cindex Expression, character @cindex Expression, character
@cindex Strings @cindex Strings
Character expressions are defined as follows: Character expressions are defined as:
@example @example
@var{expression-char}: @var{expression-char}:
...@@ -823,8 +823,8 @@ formatting characters: @code{%e}, @code{%g}, etc.). ...@@ -823,8 +823,8 @@ formatting characters: @code{%e}, @code{%g}, etc.).
Character expressions are mostly used to specify non-numeric options and Character expressions are mostly used to specify non-numeric options and
input/output file names. See @ref{t8.geo}, for an intersting usage of input/output file names. See @ref{t8.geo}, for an intersting usage of
@w{@var{expression-char}s} in an animation script. Altough there exists no @w{@var{expression-char}s} in an animation script. Altough there exists no
character expression identifier at the moment, @w{@var{expression-char}s} character expression identifier, @w{@var{expression-char}s} can be affected
can be affected to @w{@var{string-option}s}: to @w{@var{string-option}s}:
@example @example
@var{string-option} = @var{expression-char}; @var{string-option} = @var{expression-char};
...@@ -844,9 +844,8 @@ The various @w{@var{string-option}s} are listed in @ref{General options}, ...@@ -844,9 +844,8 @@ The various @w{@var{string-option}s} are listed in @ref{General options},
@cindex Expression, color @cindex Expression, color
@cindex Colors @cindex Colors
The last type of expressions encountered in Gmsh is color expression, which Colors expressions are hybrids between fixed-length bracketted
is an hybrid between a bracketted @var{expression-list} with three or four @w{@var{expression-list}s} and a @w{@var{string}s}:
elements, and a @var{string}:
@example @example
@var{expression-color}: @var{expression-color}:
...@@ -855,15 +854,16 @@ elements, and a @var{string}: ...@@ -855,15 +854,16 @@ elements, and a @var{string}:
@{ @var{expression}, @var{expression}, @var{expression}, @var{expression} @} @{ @var{expression}, @var{expression}, @var{expression}, @var{expression} @}
@end example @end example
@noindent The first case in this definition permits to use usual color @noindent The first case permits to use the X Windows names to refer to colors,
names as defined by the X Window system, e.g. @code{Red}, e.g. @code{Red}, @code{SpringGreen}, @code{LavenderBlush3},@w{ }@dots{} (see
@code{SpringGreen}, @code{LavenderBlush3},@w{ }@dots{} (see @file{Common/Colors.h} in the sources). The second case permits to define
@file{Common/Colors.h}). The second case permits to define colors by using colors by using three expressions to specify their red, green and blue
three expressions to specify their red, green and blue components (with components (with values comprised between 0 and 255). The last case permits
values comprised between 0 and 255). The last case permits to define colors to define colors by using the red, green, blue color components as well as
by using the red, green, blue color components as well as the alpha channel. the alpha channel. See @ref{t3.geo}, for an example of the use of color
expressions.
Altough there exists no color expression identifier at the moment, Altough there exists no color expression identifier,
@w{@var{expression-color}s} can be affected to @w{@var{color-option}s}: @w{@var{expression-color}s} can be affected to @w{@var{color-option}s}:
@example @example
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment