Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int x = 0; x < width; x++) {
- for(int y = 0; y < height; y++) {
- setPixel(x, y, (255-(x*255)/width+(y*255)/height)/2, (255+(x*255)/width-(y*255)/height)/2, 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement