Ejemplo n.º 1
0
Archivo: field.py Proyecto: msarch/py
def start():
    print ''
    print 'starting field engine...'
    print ''
    print ' Cell.lmnts seen from on_draw() method :', cells.lmnts

    cells.paint()
Ejemplo n.º 2
0
def on_draw():  # pyglet window draw event
    glClear(GL_COLOR_BUFFER_BIT)
    # inserer ICI? le facteur d'adaptation a la taille de l'ecran           # TODO
    cells.paint()

    if show_fps:
        CLOCKDISPLAY.draw()
Ejemplo n.º 3
0
Archivo: field.py Proyecto: msarch/py
def start():
    print''
    print 'starting field engine...'
    print ''
    print ' Cell.lmnts seen from on_draw() method :', cells.lmnts

    cells.paint()
Ejemplo n.º 4
0
Archivo: field.py Proyecto: msarch/py
def start():
    print cells.set
    cells.paint()
Ejemplo n.º 5
0
Archivo: animate.py Proyecto: msarch/py
        print':: trying to load :'
        print path
        name, ext = os.path.splitext(os.path.basename(path))
        mdl = load_source('c1', path)
        print ""
        print ':: module loaded :'
        print name, mdl
    print''
    print 'all modules loaded'

##--- MAIN --------------------------------------------------------------------
if __name__ == "__main__":

    print ""
    print ""
    print "   :::   bw / animate   :::"
    print ""
    print ""

    currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
    parentdir = os.path.dirname(currentdir)
    sys.path.insert(0,parentdir)
    scene_folder = get_scene_folder()
    parse_folder(scene_folder)
    print sys.path
    print ''
    print 'from animate :', cells.lmnts
    cells.paint()
    field.start()
    # export(duration)  # frames are saved to disk
Ejemplo n.º 6
0
    print scene_folder

    # sys.path.insert(0,scene_folder)  # include scene folder

    for path in glob(scene_folder+'/[!_]*.py'):
        print ""
        print':: trying to load :'
        print path
        name, ext = os.path.splitext(os.path.basename(path))
        mdl = load_source('c1', path)
        print ""
        print ':: module loaded :'
        print name, mdl
    print''
    print 'all modules loaded'

##--- MAIN --------------------------------------------------------------------
if __name__ == "__main__":

    currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
    parentdir = os.path.dirname(currentdir)
    sys.path.insert(0,parentdir)
    scene_folder = get_scene_folder()
    parse_folder(scene_folder)
    print sys.path
    print ''
    print 'from animate :', cells.lmnts
    cells.paint()
    field.start()
    # export(duration)  # frames are saved to disk