Advertisement
GoldenKela

Lightshow

Oct 26th, 2021
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1.  
  2. SCALED_TIME = sin(time / 1024);
  3. ROW_COUNT = (SCALED_TIME) * 128;
  4.  
  5. subcount = count / ROW_COUNT;
  6. actual_i = ((index + SCALED_TIME) % subcount) / subcount;
  7. sub_index = index % ROW_COUNT;
  8.  
  9.  
  10. x' = cos(actual_i * tau) * (128 - sub_index);
  11. y' = sin(actual_i * tau) * (128 - sub_index);
  12.  
  13. h = actual_i * 360;
  14. s = 1;
  15. v = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement