diff --git a/lib/ruby_vor/visualizer.rb b/lib/ruby_vor/visualizer.rb index 087b847..19c4a3c 100644 --- a/lib/ruby_vor/visualizer.rb +++ b/lib/ruby_vor/visualizer.rb @@ -2,7 +2,7 @@ module RubyVor class Visualizer - COLORS = %w{black blue red purple gray lime yellow orange pink} + COLORS = %w{black red blue lime gray yellow purple orange pink} include LibXML @@ -208,8 +208,8 @@ def self.circle_from_point(point) def self.new_color a = rand(256) - b = rand(256)# ^ a - c = rand(256)# ^ (a | b) + b = rand(256) | a + c = rand(256) ^ b "rgb(#{[a,b,c].sort{|k,l| rand(3)-1}.join(',')})" end