jblog
toc

Text Spinner

2015-11-21, post № 83

programming, Pygame, Python, #black, #input, #red, #red letters, #round, #spin, #text, #text input

This program lets you input text and spins it around the center!

Controls

  • Text input (alphabet, space and punctuation) inputs text,
  • ‘F1’ takes a screenshot.
text-spinner-1.png
text-spinner-2.png
text-spinner-3.png
Source code: text-spinner.py

Sailing

2015-11-15, post № 82

art, #beach, #boat, #ocean, #pixel, #pixel guy, #sea, #ship, #water

The little pixel guy wants to cross the water. He comes up with a good idea!

sailing.gif

JClock VII

2015-11-14, post № 81

programming, Pygame, Python, #clock, #composite, #composite number, #factorization, #prime, #prime factorization, #prime time, #primes

This alternative clock is not really readable by human. It calculates the first 𝟣𝟦𝟦 [1] primes, assigns 𝟨𝟢 of them to every possible second, 𝟨𝟢 to every possible minute and 𝟤𝟦 to every possible hour.
Multiplying those three primes for a given time results in a composite number representing said time. Using integer factorization, you then can get the three primes back, map them to seconds, minutes and hours, and by doing so calculate the time.

jclock-vii.gif
Extra assets: jclock-vii_extra.gif
Jonathan Frech's blog; built 2021/04/16 20:21:20 CEST