Skip to content
Sign upLog in
← Back to Community

InitColor

Profile icon
CyberPy

InitColor

A color initializer for your python program!

So this is an efficient IMO.

It has multiple features, as listed below

FeatureDescription
RGBChoose your own color using RGB codes
BoldMakes the text darker
DimMakes the text lighter
ItalicMakes the text slanted
UnderlineMakes the text output with an underline
Swap Foreground and BackgroundMakes the text and background switch colors
HiddenMakes the text invisible
ResetResets all attributes
Reset AllResets everything

Syntax:

It's simple. Simply this:

InitColor(red = 0, green = 0, blue = 0, bold = True, dim = True, italic = True, unerlined = True, swap_foreground_and_bg_colors = True, hidden = True, reset = True, reset_all = True) # Replace the 0's and the True's with wnat you want

If at anytime, you find a bug/error in the program, please let me know and I will fix it as soon as possible

So, I guess that is the whole program, and I hope you find this useful!

Please upvote and I'll so you in my next post. Bye!

Voters
Profile icon
VihaanM1
Profile icon
VulcanWM
Profile icon
ALIENXDLOLOl
Profile icon
CyberPy
Comments
hotnewtop
Profile icon
MrVoo

Looks useful! Can it be used more than once?

Profile icon
CyberPy

@MrVoo
100%
Just call the function, and it will work

Profile icon
VulcanWM

Nice!

Profile icon
CyberPy

@VulcanWM
thanks!

Profile icon
VulcanWM

np!

@CodingEssence