Skip to content

Gruaduate coloring in the preview buffer #117

@lordnik22

Description

@lordnik22

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions