Skip to content

Commit

Permalink
Visualization tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
abscondment committed Dec 31, 2008
1 parent 2dfc085 commit 51f9c23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ruby_vor/visualizer.rb
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 51f9c23

Please sign in to comment.