swapchrominance.lua 211 B

1234567891011
  1. for y=0,height-1,1 do
  2. for x=0,(width/2)-1,1 do
  3. l0,a0,b0=get_lab(x,y)
  4. l1,a1,b1=get_lab((width/2)+x,y)
  5. set_lab(x,y,l0,a1,b1)
  6. set_lab((width/2)+x,y,l1,a0,b0)
  7. end
  8. progress(y/height)
  9. end