The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by jrmcentee15, 2021-04-18 23:03:36

process document2

process document2

Output

Our Code

import processing.pdf.*;
import grab.*;
Grab grab = new Grab(this);

PFont[] fonts;
PFont bodyText;
String[] fontNames;
PGraphics maskC, maskT, maskR, maskR2;

PImage[] images, objects, maskImage, mediate,
exercise;
PImage copyImage, img;
String[] imageNames, objectNames;
int imageCount;
int columns = 4;
float columnSize = 792/columns;
int margin = 20;
int gutter = 10;
int layerSize = 408;

void setup() {
size(792, 1224);
//size(864, 612);
pixelDensity(displayDensity());
background(255);

File[] exercises = listFiles(sketchPath(“exercises”));
exercise = new PImage [exercises.length];

//image/exercise array
for (int i = 0; i <= 3; i++) {
String exerciseNames = exercises[i].toString();
exercise[i] = loadImage(exerciseNames);
//mask array
for (int z = 0; z <= 3; z++) {
String maskNames = masks[z].toString();
maskImage[z] = loadImage(maskNames);

//copy sections of images
int w = round(random(10, exercise[i].width));
int h = round(random(10, exercise[i].height));
copyImage = createImage(w, h, RGB);
copyImage.copy(exercise[i], 0, 0, w, h, 0, 0, w, h);

//resize copys to match sizes of images
maskImage[z].resize(copyImage.width, copyImage.height);

copyImage.mask(maskImage[z]);

push();
image(copyImage, random(0, width), random(0, height));
pop();
}
}

void draw() {
}

Budweiser

Logomarks

Output

Regenerative Visual System

Walmart

Logomarks

Output

Regenerative Visual System


Click to View FlipBook Version