Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

To the "FORCED INDENT" fucker.

Name: Anonymous 2007-12-13 6:46

WTF is wrong with forced indenting? It's a habit you should already be into if you write any piece of code. Ever tried to read code that isn't indented or spaced? Thats right mother fucker, it's next to impossable.

Suck my cock you scriptkiddy.

Name: Anonymous 2007-12-13 8:55

>>8
from __future__ import with_statement

@contextmanager
def drawing(mode):
    glBegin(mode)
    yield None
    glEnd()

with drawing(GL_TRIANGLE_FAN):
    for x in xrange(0, steps):
        angle = x * (math.pi / (steps / 2))
        glVertex2f(math.cos(angle) * radius,
                   math.sin(angle) * radius)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List