Advertisement
Guest User

Untitled

a guest
Dec 1st, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. function getColorStep(a, b, progress)
  2. a[4], b[4] = (tonumber(a[4]) or 255), (tonumber(b[4]) or 255)
  3. return {
  4. ( math.max(b[1], a[1]) - math.min(b[1], a[1]) ) * progress,
  5. ( math.max(b[2], a[2]) - math.min(b[2], a[2]) ) * progress,
  6. ( math.max(b[3], a[3]) - math.min(b[3], a[3]) ) * progress,
  7. ( math.max(b[4], a[4]) - math.min(b[4], a[4]) ) * progress
  8. }
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement