jblog
toc

JClock VI

2015-11-08, post № 80

programming, Pygame, Python, #clock, #clockface, #simple, #time

This clock uses a simple clock design with the standard clock face. Red, green and blue represent second, minute and hour.

jclock-vi.png
Source code: jclock-vi.py

Prime Remainders

2015-11-07, post № 79

mathematics, programming, Pygame, Python, #%, #black, #mod, #modulo, #red

This program calculates primes, takes their remainder [1] and then places a color accordingly. The shapes are quiet interesting. [2]

Controls

  • ‘Space’ takes a screenshot.
prime-remainders_mod-10.png
prime-remainders_mod-255.png
prime-remainders_mod-500.png
Source code: prime-remainders.py

Langton’s Ant

2015-11-01, post № 78

mathematics, programming, Pygame, Python, #ant, #black, #black and white, #crawling, #highway, #Langton, #white

This program is a simulation of Langton’s Ant. The following image shows the ant on its highway.

Controls

  • ‘F1’ takes a screenshot,
  • ‘Space’ stops and resumes the ant’s movement.
langtons-ant.png
Source code: langtons-ant.py
Jonathan Frech's blog; built 2021/04/16 20:21:20 CEST