xxxxxxxxxx
46
/*
*** POKEBALL ***
Shapes, Drawning and color with The Coding Train ˜ https://thecodingtrain.com/
Sketch made by Leonardo M. Louzas ( https://github.com/leonardomlouzas ) | 10/aug/24
*/
function setup() {
createCanvas(400, 300);
}
function draw() {
// === SETUP ====
background(180);
strokeWeight(3);
rectMode(CENTER);
// ==============
// ========== TOP ARC ===========
fill(255, 0, 0);
arc(200, 150, 150, 150, 9.42, 0);
// ==============================
// ========= BOTTOM ARC =========
fill(255, 255, 255);
arc(200, 150, 150, 150, 0, 9.43);
// ==============================
// ===== RECTANGLE =====
fill(0);
rect(200, 150, 145, 10);
// =====================
// === OUT CIRCLE ===
fill(255);
strokeWeight(10);
circle(200, 150, 40);
// ==================
// == INNER CIRCLE ==
strokeWeight(3);
circle(200, 150, 20);
// ==================
}