dyn_dist.bin 558 B

123456789101112
  1. The dynamic distance modifier allows you to dynamically (once per frame)
  2. change the source pixels for each ring of pixels out from the center.
  3. In the 'pixel' code section, 'd' represents the distance in pixels
  4. the current ring is from the center, and code can modify it to
  5. change the distance from the center where the source pixels for
  6. that ring would be read. This is a terrible explanation, and if
  7. you want to make a better one send it to me.
  8. Examples:
  9. Zoom in: 'd=d*0.9'
  10. Zoom out: 'd=d*1.1'
  11. Back and forth: pixel='d=d*(1.0+0.1*cos(t));', frame='t=t+0.1'