Anonymous user
ColorWall: Difference between revisions
→2. Matrix
(3 intermediate revisions by the same user not shown) | |||
Line 107:
Test your new effect with
<pre>python run.py -e RainbowTest</pre>
=== 5. Play with the randomness in <code>Twinkle</code> ===
Line 126 ⟶ 125:
<pre>
python run.py -e Twinkle
</pre>
Line 142 ⟶ 141:
<pre>
python run.py -e Checkerboards
</pre>
Line 160 ⟶ 159:
What other patterns can you create by tweaking the math for this effect?
===2. Matrix ===
Line 167 ⟶ 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! ===
|