Sha256: c468538fa602c052d672d4455e26d4f46cd05a06c20e0468ccbca47cc44e246d

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

require 'rubytext'

RubyText.start(fg: White, bg: Black)

print " "*10 
Colors.each {|col| print "%-8s" % col.to_s.capitalize }
puts
puts 

Colors.each do |col|
  puts " " + col.to_s.capitalize
  puts
end

STDSCR.bottom

r0 = 2
Colors.each do |fg|
  c0 = 10
  Colors.each do |bg|
    win = RubyText.window(1, 7, r0, c0, 
                          border: false, 
                          fg: fg, bg: bg)
    win.puts " TEXT  "
    c0 += 8
  end
  r0 += 2
end

getch

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubytext-0.0.84 tutorial/colortest.rb
rubytext-0.0.83 tutorial/colortest.rb