Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getColorStep(a, b, progress)
- a[4], b[4] = (tonumber(a[4]) or 255), (tonumber(b[4]) or 255)
- return {
- ( math.max(b[1], a[1]) - math.min(b[1], a[1]) ) * progress,
- ( math.max(b[2], a[2]) - math.min(b[2], a[2]) ) * progress,
- ( math.max(b[3], a[3]) - math.min(b[3], a[3]) ) * progress,
- ( math.max(b[4], a[4]) - math.min(b[4], a[4]) ) * progress
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement