About Me

There are actually two contributors to this blog right now—K and K. But yes, they are actually the same person: I associated two accounts with this blog just in case that I lose access to one of them. Since this blog has two contributors, I can no longer include the "About me" widget in the side bar, and this is why I have decided to create this page.

So it's time to introduce myself:
My PhotoI am currently 16 years old, and am attending high school in Toronto, Ontario. Since school is probably the most important aspect of my life, you will probably see a lot of my posts being about school; these posts are usually for me to study for tests and exams, but can also be my thoughts on various things that occur in school. During my free time, I usually read, do computer programming, or just do random things on the Internet. I do not have interesting life experiences.

Comments (6)

Loading... Logging you in...
  • Logged in as
nice opening ..keep it up
1 reply · active 667 weeks ago
Thank you. :)
Hi I have a similar grade 11 timetable as you. I need to ask a few questions and get some advice. IF you are willing to help me please shoot me an email at zaigham.h.ali@gmail.com.

Thanks!
private void setup(){

brick=new GRect(BRICK_WIDTH,BRICK_HEIGHT);
brick.setFilled(false);

for(int row=1;row<=NBRICK_ROWS;row++){
for(int num=1;num<=NBRICKS_PER_ROW;num++){
int x=getWidth()/2-(BRICK_WIDTH*NBRICKS_PER_ROW+BRICK_SEP*(NBRICKS_PER_ROW-1))/2+num*(BRICK_WIDTH+BRICK_SEP);
int y=BRICK_Y_OFFSET+row*(BRICK_HEIGHT+BRICK_SEP);

add(brick,x,y);

}

switch(row){
case 0:
case 1:
brick.setColor(Color.RED);
break;
case 2:
case 3:
brick.setColor(Color.ORANGE);
break;
case 4:
case 5:
brick.setColor(Color.YELLOW);
break;
case 6:
case 7:
brick.setColor(Color.GREEN);
break;
case 8:
case 9:
brick.setColor(Color.CYAN);
break;
}
}
}

private GRect brick;

}
Can you guys tell me what's wrong with my code?
I could not setup the bricks to the canvas in Breakout assignment.
Thank u very much
Hey there. It's pretty cool to see another Canadian Student who does Computer Programming. I'm a high school student from Belleville, a city 2 hours away from Toronto. I also enjoy computer programming, have done ECOO in the past. I just want to say that you're blog has helped me a couple of times (especially with the trig identities post). Thanks!

Post a new comment

Comments by