1 |
You don't have to think of linear interpolation in terms of lines and vector algebra (although that's what it technically is), it can work with many things. You say "I want 60% between [i]this[/i] and [i]that[/i]" and so it gives you 60% [i]that[/i] and 40% [i]this[/i].
|
1 |
You don't have to think of linear interpolation in terms of lines and vector algebra (although that's what it technically is), it can work with many things. You say "I want 60% between [i]this[/i] and [i]that[/i]" and so it gives you 60% [i]that[/i] and 40% [i]this[/i].
|
2 |
\n
|
2 |
\n
|
3 |
You can also linearly interpolate between the numbers 8 and 12. 50% in between gives 10, 25% gives 9 [color=grey](25% x 12 + 75% x 8 = 3 + 6 = 9)[/color] and 75% gives 11. If you want to be fancy: 150% would give 14 [color=grey](150% x 12 + (-50%) x 8 = 18 - 4 = 14, black magic! D:)[/color].
|
3 |
You can also linearly interpolate between the numbers 8 and 12. 50% in between gives 10, 25% gives 9 [color=grey](25% x 12 + 75% x 8 = 3 + 6 = 9)[/color] and 75% gives 11. If you want to be fancy: 150% would give 14 [color=grey](150% x 12 + (-50%) x 8 = 18 - 4 = 14, black magic! D:)[/color].
|
4 |
One
can
also
interpolate
[url=https://processing.
org/reference/lerpColor_.
html]colors[/url],
just
as
another
example.
|
4 |
Or
one
can
also
interpolate
[url=https://processing.
org/reference/lerpColor_.
html]colors[/url],
just
as
another
example.
|
5 |
\n
|
5 |
\n
|
6 |
Also, lol at @Sprung's xkcd imitation.
|
6 |
Also, lol at @Sprung's xkcd imitation.
|