Calvin (Deutschbein)
W7Mon: 07 Oct
from pgl import *
gw = GWindow(500, 200)
rect = GRect(150,50,200,100)
rect.set_color("Blue")
rect.set_filled(True)
gw.add(rect)
from pgl import *
from pgl import *
GWindow(400,400)
from pgl import *
def do_graphics(): # example name
GWindow(400,400) # single indent
from pgl import *
def do_graphics(): # example name
GWindow(400,400) # single indent
do_graphics()
from pgl import *
def do_graphics(): # example name
GWindow(400,400) # single indent
if __name__ == '__main__':
do_graphics()
from pgl import GWindow
def do_graphics(): # example name
GWindow(400,400) # single indent
do_graphics()
from pgl import *
GW_WIDTH = 400 # Width of window
GW_HEIGHT = 400 # Height of window
def do_graphics(): # example name
GWindow(GW_WIDTH,GW_HEIGHT) # single indent
do_graphics()
from pgl import *
GW_WIDTH = 400 # Width of window
GW_HEIGHT = 400 # Height of window
w = GW_WIDTH
h = GW_HEIGHT
def do_graphics(): # example name
GWindow(w,h) # single indent
do_graphics()
from pgl import *
w = 400 # width
h = 400 # height
def do_graphics():
GWindow(w,h)
do_graphics()
from pgl import *
w = 400 # width
def do_graphics():
GWindow(w,w)
do_graphics()
from pgl import *
w = 400 # width
def do_graphics():
gw = GWindow(w,w)
do_graphics()
>>> x = 3
>>> z = Vegas(x)
>>> print("Mine: x = ", x, "| z = ", z)
Mine: x = 3 | z = 9
>>> z = Vegas(x)
from pgl import *
w = 400 # width
def do_graphics():
gw = GWindow(w,w)
do_graphics()
rect = GRect(150,50,200,100)
rect.set_color("Blue")
rect.set_filled(True)
gw.add(rect)
rect = GRect(150,50,200,100)
# rect.set_color("Blue")
# rect.set_filled(True)
gw.add(rect)
from pgl import *
w = 400 # width
def do_graphics():
gw = GWindow(w,w)
rect = GRect(150,50,200,100)
gw.add(rect)
do_graphics()
|
|
|
|
|
GRect(x,y,w,h) ;
rect = GRect(150,50,200,100)
rect.set_color("Blue")
rect.set_filled(True)
gw.add(rect)
|
|
|
|