wardi/speedometer

I want to know the meanings of three colors, white, blue, and gray.

fanybook opened this issue · 1 comments

When it comes to colors, each system may use different colors.

I want to know the meanings of three speeds of rx/tx values

Based on this snippet:

speedometer/speedometer.py

Lines 243 to 265 in 43b25e8

palette = [
# name, 16-color fg, bg, mono fg, 88/256-color fg, bg
# main bar graph
('background', 'dark gray', '', '', 'g20', 'g70'),
('bar:top', 'dark cyan', '', '', '#488', ''),
('bar', '', 'dark cyan','standout', '', '#488'),
('bar:num', '', '', '', '#066', 'g70'),
# latest "curved" + average bar graph at right side
('ca:background', '', '', '', '', ''),
('ca:c:top', 'dark blue', '', '', '#66d', ''),
('ca:c', '', 'dark blue','standout', '', '#66d'),
('ca:c:num', 'light blue','', '', '#006', 'g70'),
('ca:a:top', 'light gray','', '', '#6b6', ''),
('ca:a', '', 'light gray','standout','', '#6b6'),
('ca:a:num', 'light gray','', 'bold', '#060', 'g70'),
# text headings and numeric values displayed
('title', '', '', 'underline,bold', '#fff,bold', '#488'),
('reading', '', '', '', '#886', 'g70'),
# progress bar
('pr:n', '', 'dark blue','', 'g11', '#bb6'),
('pr:c', '', 'dark green','standout','g11', '#fd0'),
('pr:cn', 'dark green','dark blue','', '#fd0', '#bb6'),
]

There's the latest sample in cyan on the chart. To the right of the chart is a light blue bar - a curved reading which tries to smooth out the speed reading, and a white bar on the right for a running average.

The same order holds for the simple output and the text output below the chart:

  • Current sample
  • Curved
  • Running average

Edit: See also: #3 (comment)