-
Notifications
You must be signed in to change notification settings - Fork 19
Description
depends #116
Graduate colouring would only work if live-stats are active.
Colouring of the characters in the preview buffer should depend on these live-stats (wpm). This should give a nice visualisation. It would be like a heat map. The faster the hotter. Important the colouring represents the speed not the accuracy. For undo to work correctly we may have to add a graduate-value (or directly the values on which the graduate coloring depend) as text-property to correctly determine the color. Else the only option would be to to reset to normal colouring which isn't consistent.
In a first we would graduate the color for following faces:
- speed-type-error-face (red)
- speed-type-consecutive-error-face (yellow)
- speed-type-correct-face (green)
Add an option to deactivate the gruaduate coloring. Maybe add an option to also have graduate-coloring directly in speed-type buffer.
Maybe add an option to also make the color depend on a mix of accuracy and speed.
Maybe add a second layer of color-mixing: If accuracy is bad, the green should have red influence. If the accuracy is good, the red should have green influence.
Maybe in show-inactive-region there is useful code for color grading: