mirror of
https://github.com/vrld/hump.git
synced 2024-12-06 13:24:21 +00:00
Fix interpolator/oscillator example
This commit is contained in:
parent
2f3e71b44a
commit
09b088b352
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user