Boston Python Workshop/Saturday/ColorWall: Difference between revisions
Content added Content deleted
imported>Jesstess No edit summary |
imported>Jesstess (→Layout) |
||
Line 12: | Line 12: | ||
The ColorWall code consists of 3 files: |
The ColorWall code consists of 3 files: |
||
* <code>run.py</code>: take arguments from your environment (like a specified width and height for the wall), set up the wall and effects, and run |
* <code>run.py</code>: take arguments from your environment (like a specified width and height for the wall), set up the wall and effects, and run them. |
||
* <code>wall.py</code>: the logic behind the matrix of squares that make up the wall. This file has a comment block at the top that summarize the interface that you will use when programming your own effects. |
* <code>wall.py</code>: the logic behind the matrix of squares that make up the wall. This file has a comment block at the top that summarize the interface that you will use when programming your own effects. |
||
* <code>effects.py</code>: where effects live. This is the main file that you'll be editing during the workshop. |
* <code>effects.py</code>: where effects live. This is the main file that you'll be editing during the workshop. |