| Last change
 on this file since 3719 was             3553, checked in by ansari, 17 years ago | 
        
          | 
Creation du module PIPhoto, interface piapp-ImageMagick pour la manipulation des images (jpg, gif...) ds piapp - Reza 14 Dec 2008
 | 
        
          | File size:
            1004 bytes | 
      
      
| Rev | Line |  | 
|---|
| [3553] | 1 | ####################################################### | 
|---|
|  | 2 | ####  Script exemple de creation d'une animation simple | 
|---|
|  | 3 | ####  a l'aide (s)piapp et ImageMagick | 
|---|
|  | 4 | ####  SOPHYA/PI - (C) LAL / IRFU    2008 | 
|---|
|  | 5 | ####################################################### | 
|---|
|  | 6 | newwin 1 1 250 250 | 
|---|
|  | 7 | setaxesatt 'font=courier,roman,12 fixedfontsize white' | 
|---|
|  | 8 |  | 
|---|
|  | 9 | xc1 = 0. | 
|---|
|  | 10 | yc1 = 0. | 
|---|
|  | 11 | a1 = 1.15 | 
|---|
|  | 12 | b1 = 0.75 | 
|---|
|  | 13 | xc2 = 0. | 
|---|
|  | 14 | yc2 = -0.2 | 
|---|
|  | 15 | a2 = 0.6 | 
|---|
|  | 16 | b2 = 1. | 
|---|
|  | 17 |  | 
|---|
|  | 18 | ## repertoire ou se trouveront les images RGB des frames | 
|---|
|  | 19 | RGBDIR = '../TAnim/' | 
|---|
|  | 20 |  | 
|---|
|  | 21 | for i 0:73 | 
|---|
|  | 22 | drpanel  -1.1 1.1 -1.1 1.1 'centeredaxes nolabels wbgcol=black' | 
|---|
|  | 23 | addoval $xc1 $yc1 $a1 $b1 'red line=solid,2' | 
|---|
|  | 24 | addoval $xc2 $yc2 $a2 $b2 'navyblue line=solid,2' | 
|---|
|  | 25 | t = $i*(Pi*2./72.) | 
|---|
|  | 26 | x = cos($t)*$a1+$xc1 | 
|---|
|  | 27 | y = sin($t)*$b1+$yc1 | 
|---|
|  | 28 | addmarker $x $y 'marker=fcircle,19 gold' | 
|---|
|  | 29 | t = $i*(Pi*2./72.)*1.75 | 
|---|
|  | 30 | x = cos($t)*$a2+$xc2 | 
|---|
|  | 31 | y = sin($t)*$b2+$yc2 | 
|---|
|  | 32 | addmarker $x $y 'marker=fcircle,19 skyblue' | 
|---|
|  | 33 | addtext -1 1 "PIAppTestAnim I=  $i" 'font=helvetica,bold,20 white' | 
|---|
|  | 34 | #  sleep 1 | 
|---|
|  | 35 | win2rgb $(RGBDIR)/tanim$i.rgb | 
|---|
|  | 36 | end | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.