Skip to content

LightPurple

Status: Experimental

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

Description

LightPurple

The named colour RGBColor[0.94, 0.88, 0.94].

Examples (4)

Every input below was run against the current Mathilda build and its output recorded.

Applications (4)

The named constant evaluates to its RGBColor literal

In[1]:= LightPurple
Out[1]= RGBColor[0.94, 0.88, 0.94]

Its full form is a plain RGBColor triple

In[2]:= FullForm[LightPurple]
Out[2]= RGBColor[0.94, 0.88, 0.94]

A protected style constant

In[3]:= MemberQ[Attributes[LightPurple], Protected]
Out[3]= True

Used as a directive, styling the primitive that follows it

In[4]:= Graphics[{LightPurple, Disk[]}]
Out[4]= -Graphics-

Implementation notes

Definition. LightPurple is a named colour constant standing for RGBColor[0.94, 0.88, 0.94] — a pale purple tint in the additive (screen) RGB model. It is not an inert head: register_color (graphics_init.c) installs it as an OwnValue, so LightPurple evaluates to its RGBColor[0.94, 0.88, 0.94] literal, and the Protected attribute is set on the same symbol. The docstring is kept centrally in info.c, mirroring CMYKColor and the other named colours.

Representation. The OwnValue is built by rgb_color(...), which runs each channel through color_component: a component exactly 0 or 1 is emitted as a plain Integer (matching Mathematica's FullForm), any other value as a Real. Because LightPurple reduces to a real colour literal before it ever reaches a renderer, it resolves anywhere RGBColor/GrayLevel/Hue do — a primitive-list directive, a PlotStyle/Background/FrameStyle value, or a ColorFunction return.

Usage & limits. A style directive only: it sets the colour of the graphics primitives that follow it and carries no numeric meaning elsewhere — D, N and arithmetic see the RGBColor[0.94, 0.88, 0.94] triple, not a scalar. The named colours are defined together as one table in graphics_init.c; LightPurple is a single row of it.

Attributes: Protected.

References

Notes & additional examples

Notes

LightPurple is a named colour constant for RGBColor[0.94, 0.88, 0.94] (a pale purple tint). Unlike CMYKColor, which is an inert head, LightPurple is an OwnValue: it evaluates to its RGBColor[...] literal, which is why it resolves anywhere a real colour would — as a primitive-list directive, a PlotStyle/Background/FrameStyle value, or a ColorFunction result. A channel of exactly 0 or 1 prints as an integer; other channels print as reals. It is Protected, and is one of the named colours defined together in graphics_init.c.