White on Red Polka Dots

Rupert Russell

Ballarat, Australia

  • Available
    Products
    65
  • Artist
    Notes
  • Artwork Comments 1

Apparel

Cases & Skins

Wall Art

Home Decor

Accessories

Stationery

Artist's Description

Steps:
Open Photoshop.
Select the area you want to tile (you can press ‘m’ for the select tool and click/drag to select an area)
From the menu select Edit→Define Pattern.
Name your pattern and click OK.
Select the Paint Bucket tool (press ‘g’)
Change the Source from Foreground to Pattern

int cubeSide = 450;
int cornerSize = 190;
int border = 10;

void setup() {
size(900, 900);
background(255,0,0);
}

void draw() {
noLoop();
noFill();
strokeCap(MITER);

// Translate the the center of the screen

translate(width /2, height /2);
// ellipse(0, 0, 5, 5);
noStroke();

fill(180, 180, 180);
// front top left
pushMatrix();
translate(cubeSide * -3/4, cubeSide * – 1/4);
fill(255);
ellipse(0, 0, cornerSize + border, cornerSize + border);
fill(255, 255, 255);
ellipse(0, 0, cornerSize, cornerSize);
popMatrix();

// front bottom left

pushMatrix();
translate(cubeSide * -3/4, cubeSide * + 3/4);
fill(255);
ellipse(0, 0, cornerSize + border, cornerSize + border);
fill(255, 255, 255);
ellipse(0, 0, cornerSize, cornerSize);
popMatrix();

// fromt bottom right

pushMatrix();
translate(cubeSide * 1/4, cubeSide * + 3/4);
fill(255);
ellipse(0, 0, cornerSize + border, cornerSize + border);
fill(255, 255, 255);
ellipse(0, 0, cornerSize, cornerSize);
popMatrix();

// fromt top right

pushMatrix();
translate(cubeSide * 1/4, cubeSide * – 1/4);
fill(255);
ellipse(0, 0, cornerSize + border, cornerSize + border);
fill(255, 255, 255);
ellipse(0, 0, cornerSize, cornerSize);
popMatrix();

// back bottom left

pushMatrix();
translate(cubeSide * -1/4, cubeSide * 1/4);
fill(255);
ellipse(0, 0, cornerSize + border, cornerSize + border);
fill(255, 255, 255);
ellipse(0, 0, cornerSize, cornerSize);
popMatrix();

// back bottom left?

pushMatrix();
translate(cubeSide * – 1/4, cubeSide * 1/4);
fill(255);
ellipse(0, 0, cornerSize + border, cornerSize + border);
fill(255, 255, 255);
ellipse(0, 0, cornerSize, cornerSize);
popMatrix();

// back top left

pushMatrix();
translate(cubeSide * – 1/4, cubeSide * – 3/4);
fill(255);
ellipse(0, 0, cornerSize + border, cornerSize + border);
fill(255, 255, 255);
ellipse(0, 0, cornerSize, cornerSize);
popMatrix();

// back top rght

pushMatrix();
translate(cubeSide * 3/4, cubeSide * – 3/4);
fill(255);
ellipse(0, 0, cornerSize + border, cornerSize + border);
fill(255, 255, 255);
ellipse(0, 0, cornerSize, cornerSize);
popMatrix();

// back bottom right

pushMatrix();
translate(cubeSide * 3/4, cubeSide * 1/4);
fill(255);
ellipse(0, 0, cornerSize + border, cornerSize + border);
fill(255, 255, 255);
ellipse(0, 0, cornerSize, cornerSize);
popMatrix();

strokeWeight(40);

stroke(255,0,0);
strokeJoin(ROUND);

noFill();
beginShape();
vertex(cubeSide * -3/4, cubeSide * -1/4);
vertex(cubeSide * 1/4, cubeSide / -1/4);
vertex(cubeSide * 1/4, cubeSide * 3/4);
vertex(cubeSide * -3/4, cubeSide * 3/4 );
vertex(cubeSide * -3/4, cubeSide * -1/4 );
vertex(cubeSide * 1/4, cubeSide / -1/4);
endShape();

beginShape();
vertex(cubeSide * – 1/4, cubeSide * 1/4);
vertex(cubeSide * – 1/4, cubeSide * – 3/4);
vertex(cubeSide * 3/4, cubeSide * – 3/4);
vertex(cubeSide * 3/4, cubeSide * 1/4);
vertex(cubeSide * – 1/4, cubeSide * 1/4);
vertex(cubeSide * -3/4, cubeSide * 3/4);
vertex(cubeSide * -3/4, cubeSide * -1/4);
vertex(cubeSide * -1/4, cubeSide * -3/4);
vertex(cubeSide * 3/4, cubeSide * -3/4);
vertex(cubeSide * 1/4, cubeSide * -1/4);
vertex(cubeSide * 1/4, cubeSide * 3/4);
vertex(cubeSide * 3/4, cubeSide * 1/4);
endShape();

// -// Translate the the center of the screen

pushMatrix();
translate(width /2, height /2);
stroke(255);
strokeWeight(7);
noFill();
popMatrix();

// front top left

pushMatrix();
translate(cubeSide * -3/4, cubeSide * – 1/4);
fill(255,255,255);
ellipse(0, 0, cornerSize + border, cornerSize + border);
popMatrix();

// front bottom left

pushMatrix();
translate(cubeSide * -3/4, cubeSide * + 3/4);
ellipse(0, 0, cornerSize + border, cornerSize + border);
popMatrix();

// fromt bottom right

pushMatrix();
translate(cubeSide * 1/4, cubeSide * + 3/4);
ellipse(0, 0, cornerSize + border, cornerSize + border);
popMatrix();

// fromt top right

pushMatrix();
translate(cubeSide * 1/4, cubeSide * – 1/4);
ellipse(0, 0, cornerSize + border, cornerSize + border);
popMatrix();

// back bottom left

pushMatrix();
translate(cubeSide * -1/4, cubeSide * 1/4);
ellipse(0, 0, cornerSize + border, cornerSize + border);
popMatrix();

// back bottom left?

pushMatrix();
translate(cubeSide * – 1/4, cubeSide * 1/4);
ellipse(0, 0, cornerSize + border, cornerSize + border);
popMatrix();

// back top left

pushMatrix();
translate(cubeSide * – 1/4, cubeSide * – 3/4);
ellipse(0, 0, cornerSize + border, cornerSize + border);
popMatrix();

// back top rght

pushMatrix();
translate(cubeSide * 3/4, cubeSide * – 3/4);
ellipse(0, 0, cornerSize + border, cornerSize + border);
popMatrix();

// back bottom right

pushMatrix();
translate(cubeSide * 3/4, cubeSide * 1/4);
ellipse(0, 0, cornerSize + border, cornerSize + border);
popMatrix();

// -

save(“cube-8s1.png”);
// exit();
}

Artwork Comments

desktop tablet-landscape content-width tablet-portrait workstream-4-across phone-landscape phone-portrait
desktop tablet-landscape content-width tablet-portrait workstream-4-across phone-landscape phone-portrait