Tag: graphics
Multi-pendulum Harmonograph simulator using numpy and matplotlib
This is a simple harmonograph simulator to generate random-ish harmonographs. It asks for the number of pendulums, and exits if… read more Multi-pendulum Harmonograph simulator using numpy and matplotlib
A Neural Network in Python, Part 2: activation functions, bias, SGD, etc.
This is Part 2 of A Neural Network in Python, which was a very simple neural network to learn the… read more A Neural Network in Python, Part 2: activation functions, bias, SGD, etc.
Spectral Harmonographs
This Python + Pygame program draws the trace of 4 decaying sine waves, 2 per axis, with rainbow colours. It… read more Spectral Harmonographs
Harmonograph in Pygame
You may have seen those devices at the Science Museum or Exploratorium or Techniquest… There’s a drawing surface and some… read more Harmonograph in Pygame
Stars and Stripes
A variation on the Stars and Stripes American Flag for Independence Day. It’s an exercise in the use of transparency in… read more Stars and Stripes
Animated Tower of Hanoi
The Tower of Hanoi is a classic problem that lends itself well to a recursive solution. The story involves some… read more Animated Tower of Hanoi
Rainbow Flag in Pygame
This little Pygame program paints the Rainbow Flag, as used by the LGBT movement. It illustrates: Importing the Pygame library… read more Rainbow Flag in Pygame
A Graphical Dice Simulator
This PyGame program simulates the roll of a die (or dice if you prefer). It’s a fairly simple, straightforward thing… read more A Graphical Dice Simulator
Fast Mandelbrot Set by QuadTree
Most Mandelbrot Set programs proceed along the display area, pixel by pixel horizontally, row by row from top to bottom…. read more Fast Mandelbrot Set by QuadTree
Extensible Harmonograph
Often seen in science museums, the harmonograph is a device that combines wave motions (e.g. from some pendulums) to move… read more Extensible Harmonograph
Easy Graph Plotting with Pyplot
Graphs (also known as charts) are an indispensible visual aid for conveying a lot of data in an easy-to-digest form…. read more Easy Graph Plotting with Pyplot






