Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup(){
- size(256, 10);
- colorMode(RGB);
- noStroke();
- rectMode(CORNER);
- background(0);
- int col;
- for (int i =0; i<256; i++) {
- col = color(255, 0, 0, i);
- fill(col);
- rect(i, 0, 1, 10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement