Browse Search Popular Register Upload Rules User list Login:
Search:
Moving Average, Average and List Interpolation Scripts!

Image:
screenshot of the scene

Author: CPJchute

Group: Default

Filesize: 27.7 kB

Date added: 2024-04-08

Rating: 5.3

Downloads: 247

Views: 178

Comments: 3

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Info in scene.
Please log in to rate this scene
edit
Similar scenes
Title: Deadly Country Survival Marble Race (READ DESC)
Rating: 5
Filesize: 4.4 MB
Downloads: 2198
Comments: 2
Ratings: 1
Date added: 2025/10/18 09:01:53
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: PINBALL MACHINE - AUTOMATIC VERSION.
Rating: 5.625
Filesize: 0.82 MB
Downloads: 2389
Comments: 6
Ratings: 2
Date added: 2012/09/22 05:08:16
Made with: Algodoo v2.0.2
Rating: rated 5.6
download
Title: C.I.W.T
Rating: 5
Filesize: 16.46 kB
Downloads: 362
Comments: 1
Ratings: 1
Date added: 2009/05/01 16:27:07
Made with: Phun
Rating: rated 5
download
Title: C.W.I.T 1.1 (no error)
Rating: 5
Filesize: 41.46 kB
Downloads: 526
Comments: 1
Ratings: 1
Date added: 2009/05/01 20:32:03
Made with: Phun
Rating: rated 5
download
Title: Average Marbles
Rating: 5
Filesize: 233.72 kB
Downloads: 273
Comments: 0
Ratings: 1
Date added: 2016/11/19 04:10:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Much Simpler Algodoo Football Match!
Rating: 5
Filesize: 0.84 MB
Downloads: 2266
Comments: 0
Ratings: 1
Date added: 2023/09/26 08:35:51
Made with: Algodoo v2.1.0
Rating: rated 5
download
In case you didn't know, Algodoo has an intrinsic (built-in) Linear Interpolation function called "lerp". Its syntax is as follows:


Lerp = (a,b,t) => { (1-t) * a + t * b }

Where, a = min value, b = max value, t = interpolation point

This is how it works:
The Lerp calculation returns a value from a known range, which is specified using a minimum and maximum value (a & b). For example, a range of 0-100.
The value that’s returned is defined by a third value, the interpolation point (t) which returns a point on the scale between a and b.
The interpolation point that’s passed in is a float value between 0 and 1. Essentially, acting as a percentage between a and b.
For example…
An interpolation point of 0 (0%) would return the minimum value (in this case also 0) while an interpolation point of 0.5 (50%) would return a value halfway between the minimum and maximum value (in this case, 50).
Last edited at 2024/04/08 17:18:56 by Xray
Amazing scene!!!:tup:

math is my favorite subject, and all these scripts were really creative! I forgot about the (min .. max) syntax or indexing a list by a list... :)
@Xray I kinda forgot about Lerp() when making the List Interpolation... List Interpolation expands lists with interpolation(in an inefficient way)(if you didn't know)

Also, that doesn't mean I didn't use lerp(). For creating the graph objects, I used lerp().

@42flowermaster - Thanks!:)