Skip to content

Instantly share code, notes, and snippets.

@map0logo
Created September 4, 2014 06:58
Show Gist options
  • Save map0logo/7b2b74c9b4d4af56f85d to your computer and use it in GitHub Desktop.
Save map0logo/7b2b74c9b4d4af56f85d to your computer and use it in GitHub Desktop.
//
// Bubbles emerging over horizon and spaceships arriving to base
// Use two planes, one upper left for arcs over bands,
// and a lower right plane with points, triangles, rectangles and quads.
// I want to use open access nice color palettes.
//
// For lines use Sunny Duck Palette http://www.colourlovers.com/palette/167272/Sunny_Duck
// For arcs use Thought Provoking Palette http://www.colourlovers.com/palette/694737/Thought_Provoking
// For points use cheer up emo kid Palette http://www.colourlovers.com/palette/1930/cheer_up_emo_kid
// For triangules use Three Colors Palette http://www.colourlovers.com/palette/3473665/Three_Colors
// For quads, rects and the ellipse use Good Friends Palette http://www.colourlovers.com/palette/77121/Good_Friends
// Setup
size(600, 300);
background(#E7E0D2);
smooth();
// 4 Bands
stroke(#F1AD1D);
strokeWeight(50);
line(0, 125, 250, 0);
stroke(#F1601D);
strokeWeight(100);
line(0, 175, 350, 0);
stroke(#17A768);
strokeWeight(200);
line(0, 275, 550, 0);
stroke(#BBAE93);
strokeWeight(400);
line(0, 475, 950, 0);
// 4 Arcs
stroke(#F1AD1D);
strokeWeight(5);
fill(#ECD078);
arc(50, 75, 50, 50, -atan(0.5)+PI, -atan(0.5) + 2*PI);
stroke(#F1601D);
strokeWeight(7.5);
fill(#D95B43);
arc(150, 45, 75, 75, -atan(0.5)+PI, -atan(0.5) + 2*PI);
stroke(#17A768);
strokeWeight(10);
fill(#C02942);
arc(75, 130, 100, 100, -atan(0.5)+PI, -atan(0.5) + 2*PI);
stroke(#BBAE93);
strokeWeight(17.5);
fill(#542437);
arc(300, 105, 175, 175, -atan(0.5)+PI, -atan(0.5) + 2*PI);
// 1 Ellipse
stroke(#D9CEB2);
fill(#D9CEB2);
ellipse(200, 265, 150, 150);
// Another arc
stroke(#E7E0D2);
strokeWeight(12.5);
fill(#53777A);
arc(200, 265, 125, 125, -atan(0.5)+PI, -atan(0.5) + 2*PI, CHORD);
// 2 Rectangles
stroke(#99B2B7);
fill(#99B2B7);
strokeWeight(20);
rect(334, 122, 100, 100);
stroke(#7A6A53);
fill(#7A6A53);
strokeWeight(20);
rect(519, 30, 50, 50);
// 2 Quadrangles
stroke(#D5DED9);
fill(#D5DED9);
strokeWeight(50);
quad(419, 190, 384, 237, 430, 221, 472, 274);
stroke(#948C75);
fill(#948C75);
strokeWeight(60);
quad(519, 90, 484, 137, 530, 121, 572, 174);
// 5 Points
stroke(#556270);
strokeWeight(57);
point(384, 237);
stroke(#4ECDC4);
strokeWeight(68);
point(430, 221);
stroke(#C7F464);
strokeWeight(41);
point(472, 274);
stroke(#FF6B6B);
strokeWeight(65);
point(419, 190);
stroke(#C44D58);
strokeWeight(51);
point(309, 178);
// 5 Triangles
stroke(#F7F956);
strokeWeight(20);
triangle(484, 187, 484+10, 187-5, 484+5, 187-10);
stroke(#FD020B);
strokeWeight(20);
triangle(530, 121, 530+10, 121-5, 530+5, 121-10);
stroke(#A4050A);
strokeWeight(25);
triangle(562, 174, 562+10, 174-5, 562+5, 174-10);
stroke(#2AC2B5);
strokeWeight(30);
triangle(519, 90, 519+10, 90-5, 519+5, 90-10);
stroke(#01928D);
strokeWeight(15);
triangle(409, 78, 409+10, 78-5, 409+5, 78-10);
saveFrame("first_assignment.png");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment