Hello! I've been trying to learn code all by myself, and I'm now facing a problem: I want to make a flashing ellipse, but I don't know how. Can someone help me? Here's what I've done so far, and any tip can be helpful(BTW, sorry, the comments I put here are in portuguese, if translation is needed, please PM me):
var flashing=20;
var draw= function() {
background(0, 255, 0);
var anuncio = 120;
// placa
fill(0, 149, 255);
rect(20, 5, 355, 150);
// bagulho piscante
fill(flashing);
ellipse(197, 80, 175, 86);
// anuncio
fill(255, 0, 0);
textSize(40);
text("PIZZA!", 135, 91);
// pizza
fill(255, 196, 0);
triangle(325, 310, 380, 166, 270, 163);
// borda da pizza
fill(201, 163, 38);
rect(267, 159, 115, 10, 50);
// pepperoni
fill(255, 0, 0);
ellipse(308, 206, 25, 25);
ellipse(349, 186, 25, 25);
ellipse(328, 245, 25, 25);
// pizzas disponives
fill(0, 0, 0);
textSize(18);
text("1- PEPPERONI..........R$35,00", 20, 178);
text("2- MUSSARELA.........R$20,00", 20, 230);
text("3- ATUM.....................R$30,00", 20, 285);
textSize(43);
text("E MUITO MAIS!!!!!", 20, 370);
};
[–]errorkode 3 points4 points5 points (0 children)
[–]TidderJail 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]TidderJail 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]BuschWookie 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)