Implement RGB information to colorcode structures. #8

Closed
opened 2024-07-01 15:34:35 -04:00 by josh · 2 comments
Owner

struct Color3 {u8 r, u8 g, u8 b}

  • Add Color3 rgbvals to colorcode struct.
  • Add reasonable rgbvals to each colorcode listed in color_codes.
  • Each terminal outputs slight variants for each color-code so just ass-pull some happy mediums to your liking.
struct Color3 {u8 r, u8 g, u8 b} * Add Color3 rgbvals to colorcode struct. * Add reasonable rgbvals to each colorcode listed in color_codes. * Each terminal outputs slight variants for each color-code so just ass-pull some happy mediums to your liking.
maxine was assigned by josh 2024-07-01 15:34:40 -04:00
maxine added the
Kind/Feature
Kind/Enhancement
Priority
Medium
labels 2024-07-01 15:35:13 -04:00
Collaborator

If we were to use std::format for conversion to str

std::format("\033[38;2;{};{};{}m", Color3.R, Color3.G, Color3.B)
If we were to use std::format for conversion to str ``` std::format("\033[38;2;{};{};{}m", Color3.R, Color3.G, Color3.B) ```
Collaborator
See mcolor https://git.redacted.cc/maxine/mcolor
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: josh/jlog#8
No description provided.