SHARE
TWEET

Untitled

a guest Oct 21st, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     for(int x = 0; x < width; x++) {
  2.         for(int y = 0; y < height; y++) {
  3.  
  4.          setPixel(x, y, (255-(x*255)/width+(y*255)/height)/2, (255+(x*255)/width-(y*255)/height)/2, 0);
  5.         }
  6.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top