~ubuntu-branches/ubuntu/trusty/python-enable/trusty

« back to all changes in this revision

Viewing changes to examples/kiva/agg/examples/lion.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-04-05 21:54:28 UTC
  • mfrom: (1.1.5 upstream)
  • mto: (8.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20110405215428-1x2wtubz3ok2kxaq
Tags: upstream-3.4.1
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
def main():
15
15
    sz = (1000,1000)
16
 
    
 
16
 
17
17
    t1 = now()
18
18
    path_and_color, size, center = get_lion()
19
19
    t2 = now()
20
 
    print t2 - t1    
21
 
    
 
20
    print t2 - t1
 
21
 
22
22
    gc = agg.GraphicsContextArray(sz)
23
23
    t1 = now()
24
 
    
 
24
 
25
25
    gc.translate_ctm(sz[0]/2.,sz[1]/2.)
26
26
    Nimages = 90
27
27
    for i in range(Nimages):