Skip to content

Instantly share code, notes, and snippets.

View Nek-12's full-sized avatar
💭
I may be slow to respond.

Nek.12 Nek-12

💭
I may be slow to respond.
View GitHub Profile
@fvilarino
fvilarino / ticker_final.kt
Last active October 31, 2024 11:37
Ticker Final
private val TickerCycleMillis = 150
private object AlphabetMapper {
private val Alphabet = " ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789•".toList()
val size: Int = Alphabet.size
fun getLetterAt(index: Int): Char = Alphabet[index % size]
fun getIndexOf(letter: Char, offset: Int = 0): TickerIndex {