Boston Python workshop/Saturday/ColorWall: Difference between revisions

no edit summary
imported>Jesstess
imported>Jesstess
No edit summary
 
(One intermediate revision by the same user not shown)
Line 124:
==Bonus exercises==
 
===Checkerboard===
<ul>
 
<li>
Find and change the colors used in the <code>Checkerboards</code> effect, and re-run the effect:
 
Line 145:
 
re-run the effect, and see what changed.
 
</li>
What other patterns can you create by tweaking the math for this effect?
<li>
 
 
=== Matrix ===
 
Find and change the color of the columns in the <code>Matrix</code> effect, and re-run the effect:
 
Line 154 ⟶ 158:
 
Each column that we see on the wall corresponds to a <code>Column</code> object. Add some randomness to the color used by each column (the variable whose value you changed above) using the <code>random.random</code> function, re-run the effect, and see what happens.
</li>
 
Write your own effects!
</li>
</ul>
 
==Some Useful Links==
 
=== Write more of your own effects! ===
If you choose to use HSV colors you define instead of the dictionary, you may find some of the following useful:
* [http://www.yafla.com/yaflaColor/ColorRGBHSL.aspx A graphical HSV color picking website]
* [http://en.wikipedia.org/wiki/HSL_and_HSV HSV on Wikipedia]
* [http://docs.python.org/library/random.html Python random library]
* [http://docs.python.org/library/time.html Python time library]
 
You have color, time, randomness, letters, and more at your disposal. Go nuts!
[[Boston Python workshop 2/Saturday projects|&laquo; Back to the Saturday project page]]
Anonymous user