-
How can I apply this expression to an image?
So I want to use this expression and add it to an image like shown in this video.https://www.youtube.com/watch?v=5N7ylsi1v8M How would I go by doing that, or does this not need an expression but something else? If it is an Expression, what do I apply it too?
hues = [0,30,60,120,180,240,300];
freq = .5; //changes per second
tran = .25; //seconds
idx1 = Math.floor(time*freq)%hues.length; //current hue index
idx2 = (idx1+1)%hues.length; //next hue index
state = linear(time%(1/freq),0,tran,0,100); //transition state (0-100)
hue = (hues[idx2]*state+hues[idx1]*(100-state))/100; // resulting hue
hslToRgb([hue/360,.85,.4,1])Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.