ENTRY | DOWNLOAD | MANUAL | ONGOING | |
shape2D.py"""Draw 2D shapes in orthographic space. by stephan) """ from slut import * class Atlantis(World): def onSetup(self): self.width = 400 self.height = 400 self.name = "2D Shapes" def onDrawOrtho(self): glColor4f(1.0, 0.5, 0.5, 1.0) glPointSize(3) point(200, 220) point(180, 220) point(220, 220) glLineWidth(1) line(50, 200, 350, 200) circle(200, 200, 190) glLineWidth(3) rect(200, 200, 350, 50) atlantis = Atlantis() atlantis.run() |
|
Initiated by Stephan Hechenberger Thanks to CADRE's 103 |