Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup(){
- size(800, 600);
- background(255);
- }
- void draw(){
- mostraBandeiraBrasil(0, 0, 600);
- }
- void mostraBandeiraBrasil(int x, int y, int l){
- int m = l/20;
- int a = m*14;
- fill(0, 169, 89);
- noStroke();
- rect(x, y, l, a);
- fill(255, 204, 41);
- int mLos = m+(7*m)/10;
- quad(x+l/2, y+mLos,
- x+l-mLos, y+a/2,
- x+l/2, y+a-mLos,
- x+mLos, y+a/2);
- fill(62, 64, 149);
- int diametro = round((m*3.5)*2);
- ellipse(x + l/2, y + a/2, diametro, diametro);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement