Sha256: 0f47a812e7e93e0c727f0394db16a4667e590a2915f18c9d623acfeb4f5eb216

Contents?: true

Size: 220 Bytes

Versions: 1

Compression:

Stored size: 220 Bytes

Contents

#!/usr/bin/env ruby
require 'rio'

RGBFILE = rio(__FILE__).dirname/'rgb.txt.gz'

RGBFILE.gzip.lines(/^\s*(\d+)\s+(\d+)\s+(\d+)\s+(\S.+)/) do |line,ma| 
  printf("#%02x%02x%02x\t%s\n",ma[1],ma[2],ma[3],ma[4])
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rio-0.3.3 ex/colx.rb