Skip to content

Instantly share code, notes, and snippets.

@JRJurman
Last active December 13, 2015 19:38
Show Gist options
  • Select an option

  • Save JRJurman/4964007 to your computer and use it in GitHub Desktop.

Select an option

Save JRJurman/4964007 to your computer and use it in GitHub Desktop.
require 'console_splash'
splsh = ConsoleSplash.new()
colorSchemes = [{:bg=>:black}, {:bg=>:white}]
(0..splsh.lines-1).each do |line|
(0..splsh.columns-1).each do |column|
splsh.write_pixel(line, column, ' ', colorSchemes[0])
colorSchemes.reverse!
end
colorSchemes.reverse!
end
splsh.splash
gets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment