Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How go back to default color pallet #45

Open
alfaex opened this issue Nov 18, 2020 · 0 comments
Open

How go back to default color pallet #45

alfaex opened this issue Nov 18, 2020 · 0 comments

Comments

@alfaex
Copy link

alfaex commented Nov 18, 2020

How can I go to default after setting a style?

colorful.use_style('monokai')

print colorful.magenta('color')

# looked on source code and tried these without success
# colorful.use_style('default')
# colorful.use_style('x11')
# colorful.use_style(None)
# colorful.use_style('rgb')
# colorful.use_style('colornames')
# colorful.use_style('X11 rgb.txt')
# colorful.disable()
# colorful.use_8_ansi_colors()
# colorful.use_256_ansi_colors()
# colorful.use_true_colors()

colorful.use_style('TRUE_COLORS')

print colorful.greenYellow('color')

colorful.core.ColorfulAttributeError: the color "greenYellow" is unknown. Use a color in your color palette (by default: X11 rgb.txt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant