class graphicle.data.ColorElement(NamedTuple)[source]

Named tuple container for the color / anticolor pair of a single particle.

New in version 0.2.0.

Public members

static ColorElement(_cls, color: int, anticolor: int)[source]

Create new instance of ColorElement(color, anticolor)

__repr__()[source]

Return a nicely formatted representation string

__getnewargs__()[source]

Return self as a plain tuple. Used by copy and pickle.

color : int[source]

Alias for field number 0

anticolor : int[source]

Alias for field number 1


Last update: Jun 27, 2025