close
تبلیغات در اینترنت

پشتیبانی

Animation
loading...

free grads

Animation There are two different ways to animate images within grads.   Set the dimension environment to have three varying dimensions and then display a variable. grads will return an animation sequence. By default, the animation dimension is…

Animation

admin بازدید : 87 چهارشنبه 10 دي 1393 نظرات ()

Animation

There are two different ways to animate images within grads.  
Set the dimension environment to have three varying dimensions and then display a variable. grads will return an animation sequence. By default, the animation dimension is time, but you may specify a different dimension to animate by using the following command:
set loopdim x|y|z|t

If you wish to animate a variable with fewer than three varying dimensions (i.e., animate a line graph), you can control animation by entering:


set looping on|off

Remember to grads/gadoc/gradcomdsetlooping.html">set looping off when you are done animating, or you will get a surprise when you display your next expression!


  • Use double buffering, which means you have two display windows, one of which is always in the background. Double buffering is invoked with the following command:


    When you issue a display command after turning on double buffering, the image is drawn to the backgound buffer. Then you issue the swap command, and grads swaps the background and foreground buffers so you can see what you've displayed. swap works like clear in that it resets many graphics options. Here is a sample script demonstrating how to use double buffering:


    			
    'open model.ctl'
    'set dbuff on'
    'set gxout shaded'
    t = 1 while (t <= 5)
    'draw title Temperature'
    'set t 't 'd t' 'cbarn'
    endwhile
    'swap'
    t = t + 1

    You may also control the speed of the animation by inserting a q pos following the swap command -- then each click of the mouse would move to the next time step.        

  • ارسال نظر برای این مطلب

    نام
    ایمیل (منتشر نمی‌شود) (لازم)
    وبسایت
    :) :( ;) :D ;)) :X :? :P :* =(( :O @};- :B /:) :S
    نظر خصوصی
    مشخصات شما ذخیره شود ؟ [حذف مشخصات] [شکلک ها]
    کد امنیتی
    اطلاعات کاربری
    نام کاربری :
    رمز عبور :
  • فراموشی رمز عبور؟
  • آمار سایت
  • کل مطالب : 155
  • کل نظرات : 0
  • افراد آنلاین : 1
  • تعداد اعضا : 4
  • آی پی امروز : 31
  • آی پی دیروز : 25
  • بازدید امروز : 112
  • باردید دیروز : 74
  • گوگل امروز : 1
  • گوگل دیروز : 0
  • بازدید هفته : 550
  • بازدید ماه : 2,770
  • بازدید سال : 20,647
  • بازدید کلی : 42,037
  • کدهای اختصاصی