WOO!
This commit is contained in:
parent
b7f4fc7a22
commit
70909aee03
1 changed files with 6 additions and 1 deletions
|
@ -38,11 +38,16 @@ class Tacho(Dial):
|
|||
for speed in range(0, int(self.max_value)+1, 500):
|
||||
min_radius = 0.81 if speed % 1000 == 0 else 0.82
|
||||
|
||||
if speed >= 7000:
|
||||
cr.set_source_rgb(0.6, 0.1, 0.1)
|
||||
|
||||
cr.set_line_width(6.0 if speed % 1000 == 0 else 2.0)
|
||||
self.draw_mark(cr, min_radius, 0.87, speed)
|
||||
|
||||
cr.set_source_rgb(1.0, 1.0, 1.0)
|
||||
|
||||
for speed in range(0, int(self.max_value)+1, 1000):
|
||||
if speed >= 7000:
|
||||
cr.set_source_rgb(1.0, 0.1, 0.1)
|
||||
|
||||
self.draw_number(cr, 0.65, speed, "%d" % int(speed / 1000))
|
||||
self.draw_number(cr, 0.69, speed, "%d" % int(speed / 1000))
|
||||
|
|
Loading…
Add table
Reference in a new issue