Fix interpolator/oscillator example

This commit is contained in:
Matthias Richter 2011-01-21 12:17:54 +01:00
parent 2f3e71b44a
commit 09b088b352

View File

@ -469,7 +469,7 @@ end</code></pre>
</dl> </dl>
</div> </div>
<div class="example">Example: <div class="example">Example:
<pre><code class="lua">fader = Interpolator(5, function(frac, r,g,b) <pre><code class="lua">fader = Timer.Interpolator(5, function(frac, r,g,b)
love.graphics.setBackgroundColor(frac*r,frac*g,frac*b) love.graphics.setBackgroundColor(frac*r,frac*g,frac*b)
end) end)
@ -502,7 +502,7 @@ end</code></pre>
</dl> </dl>
</div> </div>
<div class="example">Example: <div class="example">Example:
<pre><code class="lua">mover = Oscillator(10, function(frac) <pre><code class="lua">mover = Timer.Oscillator(10, function(frac)
return 400 + 300 * math.sin(2*math.pi*frac) return 400 + 300 * math.sin(2*math.pi*frac)
end) end)