neozhaoliang / pywonderland

A tour in the wonderland of math with python.
MIT License
4.18k stars 346 forks source link

Minor optimization in PixelCanvas.set_pixel + allowing to configure its grid initial value #19

Closed Lucas-C closed 5 years ago

neozhaoliang commented 5 years ago

Hi: I'm going to update the gifmaze project so that one can use different size in pixels for the lines and cells and also add some examples for Conway's game of life. The PixelCanvas class will be temporarily removed. You can pull new requests to add other features based on the new code.

The new features are:

  1. One can insert a frame generated in the animation at the beginning of the file as background:

prim-dfs

  1. One can draw grid lines:

langton_ant

  1. Use different line width for the cells and walls:

hilbert

and add some examples of Conway's life (still developing ...)