package vn.fynngamadeyo.adengo.graphics;

public class Screen {
	
	private int width, height;
	public int[] pixels;
	
	int time =0;
	int counter=0;
	
	public Screen(int width, int heiht){
		this.width=width;
		this.height=heiht;
		pixels = new int[width*heiht];
	}
	
	public void clear(){
		for(int i=0;i<pixels.length;i++){
			pixels[i]=0;
		}
	}
	
	public void render(){
	
		for(int y=0;y<height;y++){
			for(int x=0; x<width;x++){
				pixels[x + y * width] = 0xff0ff;
			}
		}
	}
	
}

@@ -57,18 +57,16 @@
 creen %7B%0A
-%09%0A
 %09private
@@ -118,15 +118,19 @@
 int 
+xtime,y
 time
- =0
 ;%0A%09i
@@ -339,25 +339,24 @@
 %5D=0;%0A%09%09%7D%0A%09%7D%0A
-%09
 %0A%09public voi
@@ -372,67 +372,203 @@
 )%7B%0A%09
-%0A%09%09for(int y=0;y%3Cheight;y++)%7B%0A%09%09%09for(int x=0; x%3Cwidth;x++)%7B
+%09counter++;%0A%09%09if(counter %25 100==0) xtime++;%0A%09%09if(counter %25 80==0) ytime++;%0A%09%09%0A%09%09for(int y=0;y%3Cheight;y++)%7B%0A%09%09%09if(ytime %3E=height) break;%0A%09%09%09for(int x=0; x%3Cwidth;x++)%7B%0A%09%09%09%09if(xtime %3E= width) break;
 %0A%09%09%09

update 2