|
Author |
Topic: rectMode() (Read 244 times) |
|
roland_g
|
rectMode()
« on: Jul 5th, 2004, 5:10pm » |
|
Sorry for bothering you with such a simple question, but could somebody please explain to me how rectMode (CENTER_DIAMETER) works? I thought that the absolute center of the programm serves as the starting point for the drawing of the rectangle and that the first two cordinates define the upper left corner and the other two the lower right corner.... but that doesn't seem to be right. thanks for the help
|
|
|
|
mattgilbert
|
Re: rectMode()
« Reply #1 on: Jul 5th, 2004, 7:21pm » |
|
the starting points for the drawing are still at the upper left of the window. rectMode (CENTER_DIAMETER) makes the first two values given to rect the center point of the rectangle, instead of the upper left corner. the second two values given to rect are the width and height of the rectangle, whether or not rectMode is set to (CENTER_DIAMETER).
|
|
|
|
roland_g
|
Re: rectMode()
« Reply #2 on: Jul 5th, 2004, 7:49pm » |
|
thank you Matt!
|
|
|
|
|