Bug in drawRect() function (custom function)?

In your loops you should increment widthloop and heightloop instead of width and height Also widthloop and heightloop should be initialized with 0.

In your loops you should increment widthloop and heightloop instead of width and height. Also widthloop and heightloop should be initialized with 0.

Thanks! I guess I'm incrementing the width of the rectangle, therefore the rectangle's width keeps on increasing, just like the problem I was having. – smilinggoomba Aug 1 at 11:51.

My drawRect() function is behaving as if there is a bug. I am trying to determine if there is a bug in the following, or, if not what I am doing incorrectly. I am trying to make a function that displays a rectangle on the topscreen.

If the programmer types in "drawRect(3,3)", a 3 by 3 rectangle is created. Yet, if the programmer types in "drawRect(3,4)", the upper right corner of the rectangle is displayed, and then an infinitely long top. Could someone help me?

Constructive criticism appreciated, insults not.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions