ColorWall: Difference between revisions

no edit summary
imported>Jesstess
imported>Jesstess
No edit summary
Line 16:
=== Download and un-archive the ColorWall project skeleton code ===
 
* http://web.mit.edu/jesstess/www/BostonPythonWorkshop6IntermediatePythonWorkshop/ColorWall.zip
 
Un-archiving will produce a <code>ColorWall</code> folder containing several Python files, including: run.py, effects.py, and advanced_effects.py.
Line 47:
 
<b>Check your understanding</b>: what saturation and value would you guess firetruck red have?
 
<b>Step 1 resources</b>:
<ul>
<li>
Python tuples: http://www.tutorialspoint.com/python/python_tuples.htm
</li>
<li>
Using the <code>range</code> function to produce a sequence of numbers: http://docs.python.org/tutorial/controlflow.html#the-range-function
</li>
<li>
Using the <code>time</code> module to sleep (do nothing for a bit) inside your program: http://docs.python.org/library/time.html
</li>
</ul>
 
 
Line 70 ⟶ 83:
<b>Check your understanding</b>: what would happen if you added an effect to the <code>Effects</code> list that didn't implement a <code>run</code> method? (Try it!)
 
<b>Step 2 resources</b>:
<ul>
<li>
Creating and using Python functions: http://www.sthurlow.com/python/lesson05/
</li>
<li>
Creating and using Python classes: http://www.sthurlow.com/python/lesson08/
<li>
A discussion on <code>__init__</code> and <code>self</code>: http://stackoverflow.com/questions/625083/python-init-and-self-what-do-they-do
</li>
</ul>
 
 
Anonymous user