HOW TO MAKE A VIVID ICE CREAM IN PROCESSING
In the processing exercise of today's class, I made this tiny cute ice cream with shadow!
It requires some calculation and some luck to make one, but I believe you can do it, too!
Here's the code:
void setup() {
size(500,500);
background(244,213,220);
draw();
save("b.png");
}
void draw() {
noStroke();
color vanillaShadow = color(232,210,167);
color vanilla = color(255,231,183);
color cone = color(232,183,99);
color coneShadow = color(211,167,90);
fill(vanillaShadow);
arc(240,210,75,75,3.14,6);
fill(vanilla);
arc(230,200,50,50,3.14,6.28);
fill(coneShadow);
triangle(205,200,275,200,240,275);
fill(cone);
triangle(205,200,255,200,240,275);
}
And here are some useful websites for generating colors:
1. Coolors.co
On coolers.co you can design your own five-color palette. It even provides a queue of shadows for each color!
2. Palettable.io
https://www.palettable.io/784E42
Palettable.io provides you the experience of a dating app of colors!
Comments
Post a Comment