Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. int R,G,B;
  2. B = 1.164*(Y - 16)+ 2.018*(U - 128);
  3.  
  4. G = 1.164*(Y - 16) - 0.813*(V - 128) - 0.391*(U - 128);
  5.  
  6. R = 1.164*(Y - 16) + 1.596*(V - 128);
  7.  
  8. setPixel(i, j+height/2, R, G, B);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement