xxxxxxxxxx
68
/*
An object Bolor lost some time ago that I coded
Red. Body resembles two shapes - sphere and a cone. Sphere is at the top and it is attached to the cone. Sphere and cone are red. The sphere diameter in relation to the height of the cone is 1:8. The diameter of the base of the cone is equal to the diameter of the sphere. The cone is inserted into the sphere from the apex, halfway through the sphere. The surface is rough with a specific pattern that resembles a leopard print. The pattern looks as though it's been engraved onto this object. The object is made of wood. At the center back of the cone, right in the middle horizontally and vertically, there is a small cavity, where you are able to place another small object that resembles a round cell battery. The ratio of size of the cell battery size to the object is 1:12. The majority of this entire object is red, but the print engravement has this marroon shade.
*/
// This is a 2D rendering of the 3D shapes described to me by Bolor.
function setup() {
createCanvas(400, 400);
background(0);
// angleMode(DEGREES);
}
function draw() {
//to use rotate :)
push();
rotate(PI/5);
fill(255);
//triangle(200, 160, 180, 300, 280, 300);
rect(200, 50, 250, 250);
pop();
//sphere
fill(255, 0, 0);
circle(200, 60, 40);
blendMode(HARD_LIGHT);
//cone height is 8x diameter of the "sphere"
triangle(200, 60, 180, 300, 220, 300);
noStroke();
//battery pack
push();
blendMode(HARD_LIGHT);
fill(225);
circle(200, 200, 15);
pop();
//marroon leopard pattern (sort of) created very manually?
fill(102, 0, 34);
ellipse(200, 60, 9, 7);
push();
translate(10, 10);
ellipse(200, 60, 9, 7);
translate(-20, -20);
ellipse(200, 60, 9, 7);
translate(15, 100);
ellipse(200, 60, 9, 7);
translate(0, 25);
ellipse(200, 60, 9, 7);
translate(0, 40);
ellipse(200, 60, 9, 7);
translate(0, 20);
ellipse(200, 60, 9, 7);
translate(0, 20);
ellipse(200, 60, 9, 7);
translate(0, 20);
ellipse(200, 60, 9, 7);
translate(0, 20);
ellipse(200, 60, 9, 7);
pop();
}