pyexlatex.models.format.text.color package¶
Subpackages¶
Submodules¶
pyexlatex.models.format.text.color.main module¶
- class pyexlatex.models.format.text.color.main.TextColor(content, color, opacity=1.0, **kwargs)[source]¶
Bases:
pyexlatex.models.section.base.TextAreaMixin
,pyexlatex.models.item.MultiOptionSimpleItem
Changes the color of text.
Usage: >>> import pyexlatex as pl >>> pl.TextColor(‘something’, pl.Hex(‘59bf37’)) >>> pl.TextColor(‘something’, pl.RGB(89, 191, 55)) >>> pl.TextColor(‘something’, ‘blue’, opacity=0.5)
- name = 'textcolor'¶