From d30ec75d42826904598e81474ef1da7592fb211e Mon Sep 17 00:00:00 2001 From: Stormwind Date: Wed, 9 Dec 2015 12:43:55 +0100 Subject: [PATCH] Add color scheme "green_to_red" This color scheme describes a color change from green via yellow (and orange) to red shades on a white background. --- lib/rubella/output/colored_console.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/rubella/output/colored_console.rb b/lib/rubella/output/colored_console.rb index b6f3aa5..5136b24 100644 --- a/lib/rubella/output/colored_console.rb +++ b/lib/rubella/output/colored_console.rb @@ -34,6 +34,13 @@ module Rubella 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255 ] + @symbols["green_to_red"] = self.create_colors [ + 231, # white + 194, 157, 120, 83, 46, 40, 76, 113, 149, 185, # green + 230, 230, # yellow (mean) + 114, 208, 202, # orange + 196, 196, 160, 160, 124, 88, 52 #red + ] @symbols["colored_fields"] = self.create_colors [ 35+196, 24+196,