Willkommen auf unserem Seminar-Blog

Immer auf dem aktuellen Stand bleiben

Dieser Seminar-Blog befindet sich noch im Aufbau und wird in den kommenden Tagen entsprechend verfeinert.

Member Login

Lost your password?

Registration is closed

Sorry, you are not allowed to register by yourself on this site!

You must either be invited by one of our team member or request an invitation by email at viad.info {at} zhdk {dot} ch.

Lesson 1.2

Modifying size along height:
int gridW = 12;
int gridH = 12;
int border = 60;
int stepX = 60;
int stepY = 60;
float sizeModifier = 1.05;
int graphicSize = 30;

void setup()
float graphicSizeScaled = graphicSize;
translate(border, border);
for(int i=0;i < gridH;i++)
for(int j = 0;j < gridW;j++)
rect(j * stepX, i * stepY, graphicSizeScaled, graphicSizeScaled);
graphicSizeScaled *= sizeModifier;