joshwcomeau/react-retro-hit-counter

More legible segments

Aperta

#1 aperta il 28 gen 2018

 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (5 fork)github user discovery
enhancementgood first issuehelp wanted

Metriche repository

Star
 (165 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

This component mimics a "seven-segment display": https://en.wikipedia.org/wiki/Seven-segment_display

I chose a simple implementation at first: each segment is exactly the same shape and size, and I'm just rotating them around.

Unfortunately, this means the end result isn't as legible as it could be, especially with thicker segments. Compare this component to another seven-segment display using trapezoids around the edge pieces:

current alternative

I think it would be good to move towards that alternative version, as the numbers are much easier to read.

Guida contributor