fastpyxl.drawing.colors module

class fastpyxl.drawing.colors.ColorChoice(scrgbClr=None, srgbClr=None, hslClr=None, sysClr=None, schemeClr=None, prstClr=None)[source]

Bases: Serialisable

property RGB
property RGBPercent
hslClr: HSLColor | None
namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'
prstClr: str | None
schemeClr: SchemeColor | None
scrgbClr: RGBPercent | None
srgbClr: str | None
sysClr: SystemColor | None
tagname = 'colorChoice'
xml_order = ('scrgbClr', 'srgbClr', 'hslClr', 'sysClr', 'schemeClr', 'prstClr')
class fastpyxl.drawing.colors.ColorChoiceDescriptor(*args, **kw)[source]

Bases: Typed

Objects can choose from 7 different kinds of color system. Assume RGBHex if a string is passed in.

allow_none = True
expected_type

alias of ColorChoice

class fastpyxl.drawing.colors.ColorMapping(bg1='lt1', tx1='dk1', bg2='lt2', tx2='dk2', accent1='accent1', accent2='accent2', accent3='accent3', accent4='accent4', accent5='accent5', accent6='accent6', hlink='hlink', folHlink='folHlink', extLst=None)[source]

Bases: Serialisable

accent1: str | None
accent2: str | None
accent3: str | None
accent4: str | None
accent5: str | None
accent6: str | None
bg1: str | None
bg2: str | None
extLst: ExtensionList | None
tagname = 'clrMapOvr'
tx1: str | None
tx2: str | None
class fastpyxl.drawing.colors.HSLColor(hue=None, sat=None, lum=None)[source]

Bases: Serialisable

hue: int | None
lum: float | int | None
sat: float | int | None
tagname = 'hslClr'
class fastpyxl.drawing.colors.RGBPercent(r=None, g=None, b=None)[source]

Bases: Serialisable

b: float | int | None
g: float | int | None
r: float | int | None
tagname = 'rgbClr'
class fastpyxl.drawing.colors.SchemeColor(tint=None, shade=None, comp=None, inv=None, gray=None, alpha=None, alphaOff=None, alphaMod=None, hue=None, hueOff=None, hueMod=None, sat=None, satOff=None, satMod=None, lum=None, lumOff=None, lumMod=None, red=None, redOff=None, redMod=None, green=None, greenOff=None, greenMod=None, blue=None, blueOff=None, blueMod=None, gamma=None, invGamma=None, val=None)[source]

Bases: Serialisable

alpha: int | None
alphaMod: int | None
alphaOff: int | None
blue: int | None
blueMod: int | None
blueOff: int | None
comp: bool | None
gamma: bool | None
gray: int | None
green: int | None
greenMod: int | None
greenOff: int | None
hue: int | None
hueMod: int | None
hueOff: int | None
inv: int | None
invGamma: bool | None
lum: int | None
lumMod: int | None
lumOff: int | None
namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'
red: int | None
redMod: int | None
redOff: int | None
sat: int | None
satMod: int | None
satOff: int | None
shade: int | None
tagname = 'schemeClr'
tint: int | None
val: str | None
xml_order = ('tint', 'shade', 'comp', 'inv', 'gray', 'alpha', 'alphaOff', 'alphaMod', 'hue', 'hueOff', 'hueMod', 'sat', 'satOff', 'satMod', 'lum', 'lumMod', 'lumOff', 'red', 'redOff', 'redMod', 'green', 'greenOff', 'greenMod', 'blue', 'blueOff', 'blueMod', 'gamma', 'invGamma')
class fastpyxl.drawing.colors.SystemColor(val='windowText', lastClr=None, tint=None, shade=None, comp=None, inv=None, gray=None, alpha=None, alphaOff=None, alphaMod=None, hue=None, hueOff=None, hueMod=None, sat=None, satOff=None, satMod=None, lum=None, lumOff=None, lumMod=None, red=None, redOff=None, redMod=None, green=None, greenOff=None, greenMod=None, blue=None, blueOff=None, blueMod=None, gamma=None, invGamma=None)[source]

Bases: Serialisable

alpha: int | None
alphaMod: int | None
alphaOff: int | None
blue: int | None
blueMod: int | None
blueOff: int | None
comp: Transform | None
gamma: Transform | None
gray: Transform | None
green: int | None
greenMod: int | None
greenOff: int | None
hue: int | None
hueMod: int | None
hueOff: int | None
inv: Transform | None
invGamma: Transform | None
lastClr: str | None
lum: int | None
lumMod: int | None
lumOff: int | None
namespace = 'http://schemas.openxmlformats.org/drawingml/2006/main'
red: int | None
redMod: int | None
redOff: int | None
sat: int | None
satMod: int | None
satOff: int | None
shade: int | None
tagname = 'sysClr'
tint: int | None
val: str | None
xml_order = ('tint', 'shade', 'comp', 'inv', 'gray', 'alpha', 'alphaOff', 'alphaMod', 'hue', 'hueOff', 'hueMod', 'sat', 'satOff', 'satMod', 'lum', 'lumOff', 'lumMod', 'red', 'redOff', 'redMod', 'green', 'greenOff', 'greenMod', 'blue', 'blueOff', 'blueMod', 'gamma', 'invGamma')
class fastpyxl.drawing.colors.Transform[source]

Bases: Serialisable

tagname = 'comp'