DaveVenom
(Dave Benham)
November 1, 2023, 2:16am
15
cosinekitty:
The rule is that I keep updating the current point, but once it is more than 0.1 volts away from the previous point, I put a new segment on the front of the “snake”. At the same time, I fade a segment out from the back of the snake. So hopefully it looks fairly smooth at whatever your video frame rate is, while also allowing the snake to grow nice and twisty.
I don’t want to hijack your announcement, but I posted a worthless, but tangentially related and maybe entertaining topic in the Lounge about drawing snakes!
From the Saphire Frolic Tricorder Tin announcement post - discussing how the Tricorder 3-D plot is generated: (I didn’t want to hijack the announcement - this absolutely belongs in the lounge)
Your description of the graphing mechanism reminds me of another life when I implemented the Snake video game using nothing but Windows batch programming (commonly but mistakenly referred to as DOS).
The snake was very nearly as you describe, except the game snake would grow by one segment each time it …