8000 Make a separate wrapper around colors by RocketRace · Pull Request #1 · RocketRace/ti · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make a separate wrapper around colors #1

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

Merged
merged 3 commits into from
Aug 15, 2023
Merged

Make a separate wrapper around colors #1

merged 3 commits into from
Aug 15, 2023

Conversation

RocketRace
Copy link
Owner
@RocketRace RocketRace commented Aug 14, 2023

Instead of exposing color::Color as crossterm::Color, make a new struct that wraps an ANSI color (8-bit).

The use of a palette like this makes the color space technically less expressive than using RGB, but fits the retro aesthetic more, and it's better supported by terminals.

To do:

  • Use this in the image parsing methods
  • Expose some convenience methods for standard palette colors
  • More tests

@RocketRace RocketRace merged commit b9244db into main Aug 15, 2023
@RocketRace RocketRace deleted the ansi-colors branch August 15, 2023 07:21
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

Successfully merging this pull request may close these issues.

1 participant
0