Untitled
public text v1 · immutable>>> import Image
>>> import soy
>>> from time import sleep
>>>
>>> img = Image.open('lava.png')
>>> tex = soy.textures.Texture()
>>> tex.fromPIL(img)
>>>
>>> scr = soy.Screen()
>>> win = soy.Window(scr, 'Simulation Test')
>>>
>>> sce = soy.Scene()
>>> cam = soy.bodies.Camera(sce)
>>> cam.position = (0.0, 0.0, 5.0)
>>>
>>> ca1 = soy.widgets.Canvas(win, size=(300,220), position=(10,10), texture=tex)
>>> slkfjasdlkfjasd
Segmentation fault
eastein@glamdring:/h