The red circle closes your window, but it doesn't quit the app. If you recently switched from Windows, it's like the app running in your taskbar.
The yellow button minimizes, and the green button changes size/maximizes.
Also, if you want to change the size of your window, you can only do so from the lower right hand corner.