Anonymous user
ColorWall: Difference between revisions
→2. Matrix
(2 intermediate revisions by the same user not shown) | |||
Line 125:
<pre>
python run.py -e Twinkle
</pre>
Line 141:
<pre>
python run.py -e Checkerboards
</pre>
Line 159:
What other patterns can you create by tweaking the math for this effect?
===2. Matrix ===
Line 166 ⟶ 165:
<pre>
python run.py -e Matrix
</pre>
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.
===3. Write more of your own effects! ===
|