Sha256: 658ac5c811e881ef3b1fa20367adf4cbc42eb342097248c38b0faf2136e729f5

Contents?: true

Size: 836 Bytes

Versions: 7

Compression:

Stored size: 836 Bytes

Contents

module Paint
  # A list of color names for standard ansi colors, needed for 16/8 color fallback mode
  # See http://en.wikipedia.org/wiki/ANSI_escape_code#Colors
  RGB_COLORS_ANSI = {
    :black   => [0,0,0],
    :red     => [205,0,0],
    :green   => [0,205,0],
    :yellow  => [205,205,0],
    :blue    => [0,0,238],
    :magenta => [205,0,205],
    :cyan    => [0,205,205],
    :white   => [229,229,229],
  }

  # A list of color names for standard bright ansi colors, needed for 16 color fallback mode
  # See http://en.wikipedia.org/wiki/ANSI_escape_code#Colors
  RGB_COLORS_ANSI_BRIGHT = {
    :black   => [127,127,127],
    :red     => [255,0,0],
    :green   => [0,255,0],
    :yellow  => [255,255,0],
    :blue    => [92,92,255],
    :magenta => [255,0,255],
    :cyan    => [0,255,255],
    :white   => [255,255,255],
  }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
paint-0.8.7 lib/paint/rgb_colors_ansi.rb
paint-0.8.6 lib/paint/rgb_colors_ansi.rb
paint-0.8.5 lib/paint/rgb_colors_ansi.rb
paint-0.8.4 lib/paint/rgb_colors_ansi.rb
paint-0.8.3 lib/paint/rgb_colors_ansi.rb
paint-0.8.2 lib/paint/rgb_colors_ansi.rb
paint-0.8.1 lib/paint/rgb_colors_ansi.rb