Code at: https://github.com/villares/sketch-a-day/tree/main/2024/sketch_2024_08_20
More sketch-a-day: https://abav.lugaralgum.com/sketch-a-day
I really need your support to keep going, if you can, donate any amount at: https://www.paypal.com/donate/?hosted_button_id=5B4MZ78C9J724 #Processing #Python #py5 #CreativeCoding #NumPy #lerp #LinearInterpolation

Update: This could be done with:
`r = py5.lerp(a[:,np.newaxis], b[:,np.newaxis], t) # np.newaxis is an alias for None`

sketch-a-day/2024/sketch_2024_08_20 at main Β· villares/sketch-a-day

One visual idea a day. Contribute to villares/sketch-a-day development by creating an account on GitHub.

GitHub
#TodayILeaned I can use #py5's #lerp (Linear intERPolation, also very much liked in #Processing & p5.js) function with #NumPy arrays (and why wouldn't it work, right?) I should write a post about this... I used to have a slow recursive function called lerp_tuple to interpolate between two polygons or collections of point positions and I can probably retire it!

I don't have time to go through the math now, but this looks pretty good. "Fixing the iterative damping interpolation in video games".

https://blog.pkh.me/p/41-fixing-the-iterative-damping-interpolation-in-video-games.html

#math #programming #videogames #maths #mathematics #lerp

Fixing the iterative damping interpolation in video games

A tiny psyllid in its protective lerp. Cardiaspina sp.

#macro #nature #lerp #psyllid #cardiaspina #insect #insectsofthefediverse
An intricate Iron Throne-meets taco shell lerp, with the tiny bug hiding underneath. The lerp is dried honeydew, a sugary liquid secreted by the insect, and protects it from predators. Cardiaspina sp.

#macro #nature #insect #lerp #cardiaspina #insect #insectsofthefediverse

Quite a few new mints overnight on Ordo versus Chaos!
Currently, 21/1000 minted, 1 tez.
https://www.fxhash.xyz/generative/28316

#wave #lerp #gradient #repetition #mirror #ChaosAndOrder #OrdoVersusChaos #Waveforms #ControlledChaos

Ordo versus Chaos β€” fxhash

What is Chaos? It can be something different from person to person. One might think it’s random acts, and others might think it’s uncontrollable forces. I feel like Chaos is unruly, surprising, and de

My newest project on @fx_hash_, Ordo versus Chaos, is now live. Thanks to the minters out of the gate @GrouchyzNFT, @Artsofchet, @Earl__reno, and Anonymous, you guys rock!πŸ‘Š

https://t.co/oGIoE1Dml2
ed of 1000, 1tez, #LETSGO

#wave #lerp #gradient #repetition #mirror #Waveforms #ControlledChaos

Ordo versus Chaos β€” fxhash

What is Chaos? It can be something different from person to person. One might think it’s random acts, and others might think it’s uncontrollable forces. I feel like Chaos is unruly, surprising, and de

See also Improved Lerp Smoothing for a more thorough explanation of how to do the speedup lerp correctly (using exponential function). It also explains how to convert existing lerps with fixed values to ones using exp2() and deltaTime.

https://www.gamedeveloper.com/programming/improved-lerp-smoothing-

value = lerp(target, value, exp2(-rate*deltaTime))

With a rate of 1.0, the value will move halfway to the target each second. If you double the rate, the value will move in twice as fast.

#lerp #gamedev

Improved Lerp Smoothing.

Using value = lerp(value, target, speed) to smoothly animate a value is a common pattern. A trivial change can make it frame rate independent and easier to tune.

I thought this deltaTime video was well-done. It's a light-hearted look at getting mathematically correct results for changes over time with the opportunity to come up with your own answer before he explains. It completely avoids the "Fix your timestep" discussion and is all about writing gameplay code instead. https://www.youtube.com/watch?v=yGhfUcPjXuE

#lerp #gamedev #time

Dear Game Developers, Stop Messing This Up!

YouTube

#Processing drawing infrastructure, out of the box, doesn't come with a "dashed line" primitive, or sophisticated line styles. Golan Levin and Tega Brain (Code as Creative Medium, 2021) propose writing a function for that as a small exercise. How to tackle it? How would you draw a dashed line if you only had a simple line() function for drawing?

My first intuition I think would be to use #lerp to get intermediary points along the line. I have often used some kind of "lerp tuple" strategy for coordinates. What would you do?

#creativeCoding #CACM