TUTORIAL

How to Repeat

	

	for()
	Controls a sequence of repetitions.
	Reference




	  
	for(int i=-30;i<250;i=i+30) 	      for(int i=-30;i<250;i=i+20) 	      for(int i=-30;i<250;i=i+10)

	size(250,250);
	PFont font;
	background(255,255,255);
	font = loadFont("HelveticaNeue-48.vlw");

	for(int i=-30;i<250;i=i+10)
	{

	textFont(font, 48);
	fill(0,0,0);

	text("T", i, 40);

	}
	Exercise1:Change your font style, size, and text in the above code.



  
	for(int i=-30;i<250;i=i+30)
				for(int i=-30;i<250;i=i+20) 	for(int i=-30;i<250;i=i+10)

	size(250,250);
	PFont font;
	background(255,255,255);
	font = loadFont("HelveticaNeue-48.vlw");


	for(int i=-30;i<250;i=i+30)
	{


	textFont(font, 48);
	fill(0,0,0);

	text("T", i, i);

	}

Exercise2:Change your font style, size, and text in the above code.










1. for(int i=-30;i<250;i=i+30)and for(int j=-30;j<250;j=j+30) 2. for(int i=-30;i<250;i=i+20) and for(int j=-30;j<250;j=j+20) 3. for(int i=-30;i<250;i=i+10) and for(int j=-30;j<250;j=j+10) size(250,250); PFont font; background(255,255,255); font = loadFont("HelveticaNeue-48.vlw"); for(int i=-30;i<250;i=i+10) { for(int j=-30;j<250;j=j+10) { textFont(font, 48); fill(0,0,0); text("T", i, j); } } Exercise3:Change your font style, size, and text in the above code.