LightOrange¶
Status: Experimental
present and registered, but lightly documented and not yet covered by dedicated tests.
Description¶
LightOrange
The named colour RGBColor[1, 0.9, 0.8].
Examples (3)¶
Every input below was run against the current Mathilda build and its output recorded.
Applications (3)¶
A named colour evaluates to its colour directive
Same thing, confirmed
Its components
Implementation notes¶
Definition. LightOrange is one of Mathilda's named colour constants ā a pale orange. Like
Mathematica's own named colours it is not an inert head but a symbol whose OwnValue is
an RGBColor literal, so it resolves to a real colour directive anywhere one is expected:
LightOrange evaluates to RGBColor[1, 0.9, 0.8].
Representation. register_color("LightOrange", ...) in src/graphics/graphics_init.c
installs the OwnValue LightOrange -> RGBColor[1, 0.9, 0.8] and marks the symbol Protected; the
component builder prints an exact 0 or 1 as a plain integer and anything else as
a real, matching Mathematica's own InputForm. The docstring lives centrally in
src/info.c. Because it is an OwnValue (not an inert head), a non-held graphics
argument or an evaluated-once plot option sees the expanded RGBColor[1, 0.9, 0.8], exactly as a
literal colour would.
Usage & limits. Protected. It is a value, not a function: feeding it a wrong
"argument" is meaningless. Use it as a PlotStyle / VectorStyle directive, inside
Graphics primitives, or in ColorRules. The grey-scale constants
(Black, White, Gray, LightGray) expand to GrayLevel; the rest to
RGBColor.
Attributes: Protected.
References¶
- Source:
src/graphics/graphics_init.c - Specification index:
Mathilda_spec.md
Notes & additional examples¶
Notes¶
LightOrange is one of Mathilda's named colour constants. Rather than being an inert head, it
is a symbol whose OwnValue is the directive RGBColor[1, 0.9, 0.8], so it resolves to a real colour
wherever one is expected ā as a PlotStyle / VectorStyle directive, inside
Graphics primitives, or in ColorRules.
It expands to an RGBColor directive, like most of the named colours. The exact components 0 and 1 print as plain integers (matching
Mathematica's InputForm). LightOrange is Protected.