I wanna make a little gadget that shows the time of day by positioning a sun and/or moon along a curved path. I can do it and have already, except what I can do is manually position the image for every single possible state it could be in. Not-optimal. If I want a position for every 15 minutes that's 96 positions, more would be impractical. If I want to resize or change image I have to adjust each manually.
Ideally I'd like to be able to set a curve and have the position of the image be placed along that curve based on a variable number. An invisible circle or parabola that acts like a slider where position is set via variable.
Even better if the curve can be set to automatically adjust size and shape overlaid on an image so the image can be resized, changed out, or moved and have the curve stay consistent to the paired image.
Does anybody know of a script or plugin I might use to achieve this effect? I'm sure it could be mathed out in JS, but idk how. If only I paid more attention to the graph based math stuff in school, ahh.
Thanks for your consideration 🙂
Ideally I'd like to be able to set a curve and have the position of the image be placed along that curve based on a variable number. An invisible circle or parabola that acts like a slider where position is set via variable.
Even better if the curve can be set to automatically adjust size and shape overlaid on an image so the image can be resized, changed out, or moved and have the curve stay consistent to the paired image.
Does anybody know of a script or plugin I might use to achieve this effect? I'm sure it could be mathed out in JS, but idk how. If only I paid more attention to the graph based math stuff in school, ahh.
Thanks for your consideration 🙂