Skip to content

Commit

Permalink
Warn about gradient colors (introduced in xdot version 1.4).
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed Nov 5, 2013
1 parent e36b49b commit 4795d60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xdot.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ def read_color(self):
r, g, b = colorsys.hsv_to_rgb(h, s, v)
a = 1.0
return r, g, b, a
elif c1 == "[":
sys.stderr.write('warning: color gradients not supported yet\n')
return None
else:
return self.lookup_color(c)

Expand Down

0 comments on commit 4795d60

Please sign in to comment.