Processing Pacman Banner

Processing Pacman

In Science, Technology by TomLeave a Comment

A sketch made with the Processing Programming Language. Everything you see has been drawn on the screen using nothing but code. No Photoshop used. Source code is included below if you’re interested. To learn more, go to the Processing Programming Language Official Website.

Pacman in Processing


//map
background(#000000);
size(1000,750);
stroke(#0372ff);
line(125,0,125,125);
line(250,0,250,125);
line(0,125,125,125);
line(250,125,625,125);
line(625,125,625,0);
line(750,125,750,0);
line(750,125,1000,125);
line(0,250,125,250);
line(250,250,625,250);
line(750,250,1000,250);
line(750,250,750,375);
line(750,375,1000,375);
line(1000,625,875,625);
line(875,625,875,500);
line(875,500,750,500);
line(750,500,750,750);
line(125,250,125,375);
line(125,375,0,375);
line(0,500,125,500);
line(125,500,125,750);
line(250,250,250,500);
line(250,500,375,500);
line(375,500,375,375);
line(375,375,625,375);
line(625,375,625,250);
line(250,625,250,750);
line(250,625,500,625);
line(500,625,500,500);
line(500,500,625,500);
line(625,500,625,750);

//pacman
noStroke();
//face
fill(#faff08);
ellipse(185,185,100,100);
//mouth
fill(#000000);
triangle(250,150,185,185,250,225);

//food
fill(#ffffff);
ellipse(187.5,62.5,35,35);
ellipse(187.5,312,35,35);
ellipse(187.5,375,35,35);
ellipse(187.5,437.5,35,35);
ellipse(187.5,500,35,35);
ellipse(187.5,562.5,35,35);
ellipse(187.5,625,35,35);
ellipse(187.5,687.5,35,35);
ellipse(125,437.5,35,35);
ellipse(312.5,187.5,35,35);
ellipse(375,187.5,35,35);
ellipse(437.5,187.5,35,35);
ellipse(500,187.5,35,35);
ellipse(562.5,187.5,35,35);
ellipse(625,187.5,35,35);
ellipse(687.5,187.5,35,35);
ellipse(750,187.5,35,35);
ellipse(812.5,187.5,35,35);
ellipse(875,187.5,35,35);
ellipse(937.5,187.5,35,35);
ellipse(687.5,62.5,35,35);
ellipse(687.5,125,35,35);
ellipse(687.5,250,35,35);
ellipse(687.5,312.5,35,35);
ellipse(687.5,375,35,35);
ellipse(687.5,500,35,35);
ellipse(687.5,562.5,35,35);
ellipse(687.5,625,35,35);
ellipse(687.5,687.5,35,35);
ellipse(250,562.5,35,35);
ellipse(312.5,562.5,35,35);
ellipse(375,562.5,35,35);
ellipse(437.5,562.5,35,35);
ellipse(437.5,500,35,35);
ellipse(437.5,437.5,35,35);
ellipse(500,437.5,35,35);
ellipse(562.5,437.5,35,35);
ellipse(625,437.5,35,35);
ellipse(750,437.5,35,35);
ellipse(812.5,437.5,35,35);
ellipse(875,437.5,35,35);
ellipse(937.5,437.5,35,35);
ellipse(937.5,500,35,35);
ellipse(937.5,562.5,35,35);

//monster1
//face
fill(#ff00c0);
noStroke();
ellipse(467.5,180,65,65);
ellipse(447.5,205,20,40);
ellipse(467.5,205,20,40);
ellipse(487.5,205,20,40);
//eyes
fill(#ffffff);
ellipse(465,170,15,20);
ellipse(485,170,15,20);
fill(#00dbff);
ellipse(466,170,5,10);
ellipse(486,170,5,10);

//monster2
//face
fill(#ff7403);
noStroke();
ellipse(62.5,430,65,65);
ellipse(42.5,455,20,40);
ellipse(62.5,455,20,40);
ellipse(82.5,455,20,40);
//eyes
fill(#ffffff);
ellipse(60,420,15,20);
ellipse(80,420,15,20);
fill(#00dbff);
ellipse(61,420,5,10);
ellipse(81,420,5,10);

//monster3
//face
fill(#ff0303);
noStroke();
ellipse(687.5,430,65,65);
ellipse(667.5,455,20,40);
ellipse(687.5,455,20,40);
ellipse(707.5,455,20,40);
//eyes
fill(#ffffff);
ellipse(677.5,415,15,20);
ellipse(697.5,415,15,20);
fill(#00dbff);
ellipse(677.5,412,5,10);
ellipse(697.5,412,5,10);

Leave a Comment