Pine Trees by @ramayac

Rupert Russell

Ballarat, Australia

  • Available
    Products
    63
  • Artist
    Notes

Apparel

Cases & Skins

Wall Art

Home Decor

Accessories

Stationery

Artist's Description

/*
Pine Trees
Inspired by : http://simpledesktops.com/browse/desktops/2013/...
from “Simple Desktops”

Based on coded by @ramayac

based on https://www.openprocessing.org/sketch/94706
by ramayac
*/

int stepx, stepy;
color fondo, color1;

void setup(){
size(7700, 7700);
noStroke();

stepx = 66 * 3;
stepy = 115 * 3;

fondo = color(#CFE8CC);
color1 = color(#4A925C);
smooth();
}

void draw(){
background(fondo);
noStroke();

fill(color1, 175);
for(int i = -stepx; i <= width+stepx; i = i+stepx){
for(int j = -stepy; j <= width+stepy; j = j+stepy){
triangulo(i, j);
}
}

noLoop();
save(“PineTrees.png”);
exit();
}

void triangulo(int x, int y){
pushMatrix();
translate(x, y);
triangle(0, stepy, stepx, 0, 132 * 3, stepy);
popMatrix();
}

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