hwylterm/bbansi/colors

Search:
Group by:
Source   Edit  

Types

Color256 = range[0 .. 255]
Source   Edit  
ColorHex = object
Source   Edit  
ColorRgb = object
Source   Edit  
ColorXterm = enum
  Black, Red, Green, Yellow, Blue, Magenta, Cyan, White, BrightBlack, BrightRed,
  BrightGreen, BrightYellow, BrightBlue, BrightMagenta, BrightCyan, BrightWhite
Source   Edit  

Procs

func `$`(c: ColorRgb): string {....raises: [], tags: [], forbids: [].}
Source   Edit  
func hexToRgb(s: string): ColorRgb {....raises: [], tags: [], forbids: [].}
Source   Edit  
func rgb(r, g, b: int): ColorRgb {....raises: [], tags: [], forbids: [].}
Source   Edit