Skip to content

Orange

Status: Experimental

present and registered, but lightly documented and not yet covered by dedicated tests.

Description

Orange

The named colour RGBColor[1, 0.5, 0].

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

In[1]:= Orange
Out[1]= RGBColor[1, 0.5, 0]

Same thing, confirmed

In[2]:= Orange === RGBColor[1, 0.5, 0]
Out[2]= True

Its components

In[3]:= List @@ Orange
Out[3]= {1, 0.5, 0}

Implementation notes

Definition. Orange is one of Mathilda's named colour constants — 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: Orange evaluates to RGBColor[1, 0.5, 0].

Representation. register_color("Orange", ...) in src/graphics/graphics_init.c installs the OwnValue Orange -> RGBColor[1, 0.5, 0] 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.5, 0], 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

Notes & additional examples

Notes

Orange 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.5, 0], 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). Orange is Protected.