mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Fix interpolator/oscillator example
This commit is contained in:
parent
2f3e71b44a
commit
09b088b352
@ -469,7 +469,7 @@ end</code></pre>
|
||||
</dl>
|
||||
</div>
|
||||
<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)
|
||||
end)
|
||||
|
||||
@ -502,7 +502,7 @@ end</code></pre>
|
||||
</dl>
|
||||
</div>
|
||||
<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)
|
||||
end)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user