新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   >>中国XML论坛<<     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论SVG, GML, X3D, VRML, VML, XAML, AVALON, Batik等基于XML的图形技术,以及有关GIS的应用。
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - 高级XML应用『 SVG/GML/VRML/X3D/XAML 』 → sunset   SVG动画 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 18346 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: sunset   SVG动画 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     卷积内核 帅哥哟,离线,有人找我吗?
      
      
      威望:8
      头衔:总统
      等级:博士二年级(版主)
      文章:3942
      积分:27590
      门派:XML.ORG.CN
      注册:2004/7/21

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给卷积内核发送一个短消息 把卷积内核加入好友 查看卷积内核的个人资料 搜索卷积内核在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问卷积内核的主页 引用回复这个贴子 回复这个贴子 查看卷积内核的博客楼主
    发贴心情 sunset   SVG动画

    <?xml version="1.0"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
     "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
    <svg width="500" height="500" style="fill:rgb(0,0,255)">
    <defs>
    <!-- Set up the various element to be used -->

    <radialGradient id="stars">
       <stop offset="0" style="stop-color:white;"/>
     <stop offset="80%" style="stop-color:  black;"/>
    </radialGradient>

    <g id="cloud">
     <circle cx="50" cy="50" r="25" style="fill:white"/>
     <circle cx="30" cy="40" r="25" style="fill:white"/>
     <circle cx="70" cy="30" r="25" style="fill:white"/>
     <circle cx="100" cy="40" r="25" style="fill:white"/>
     <circle cx="90" cy="50" r="25" style="fill:white"/>
    </g>

    <g id="house">
     <rect x="0" y="0" width="50" height="50" style="fill:brown"/>
     <rect x="5" y="5" width="15" height="15" style="fill:white">
     <animateColor attributeName="fill" from="white" to="yellow" dur="3s" begin="15s" fill="freeze"/>
     </rect> 
     <rect x="30" y="5" width="15" height="15" style="fill:white">
     <animateColor attributeName="fill" from="white" to="yellow" dur="3s" begin="15s" fill="freeze"/>
     </rect> 
     <rect x="5" y="28" width="15" height="15" style="fill:white">
     <animateColor attributeName="fill" from="white" to="yellow" dur="3s" begin="15s" fill="freeze"/>
     </rect> 
     <rect x="30" y="28" width="15" height="22" style="fill:yellow">
     <animateColor attributeName="fill" from="white" to="yellow" dur="3s" begin="15s" fill="freeze"/>
     </rect>    
    </g>
    <g id="star">
     <circle cx="5" cy="5" r="5" style = "fill: url(#stars);"/> 
    </g>
    </defs>
    <!-- Draw the background -->
    <rect id="sky" x="0" y="0" width="500" height="400" style="fill:cyan"/>
    <circle id="sun" cx="300" cy="100" r="50" style="fill:yellow"/>
    <circle id="moon" cx="200" cy="100" r="50" style="fill:white; opacity:0"/>
    <rect id="ground" x="0" y="400" width="500" height="100" style="fill:green"/>
    <!-- Draw the clouds -->
    <g id="cloudGroup">
     <use id="cloud1" xlink:href="#cloud" x="0" y="0"/>
     <use id="cloud2" xlink:href="#cloud" x="200" y="200"/>
     <use id="cloud3" xlink:href="#cloud" x="50" y="150"/>
    </g>
    <!-- Draw the houses -->
    <use id="house1" xlink:href="#house" x="50" y="350" />
    <use id="house1" xlink:href="#house" x="50" y="350" />
    <use id="house1" xlink:href="#house" x="150" y="350" />
    <use id="house1" xlink:href="#house" x="300" y="350" />
    <use id="house1" xlink:href="#house" x="400" y="350" />
    <!-- Draw the Stars -->
    <g id="starsGroup" style="opacity:0;">
    <use id="star1" xlink:href="#star" x="50" y="20" />
    <use id="star2" xlink:href="#star" x="150" y="40" />
    <use id="star3" xlink:href="#star" x="350" y="50" />
    <use id="star4" xlink:href="#star" x="300" y="100" />
    <use id="star5" xlink:href="#star" x="320" y="220" />
    <use id="star6" xlink:href="#star" x="10" y="250" />
    <use id="star7" xlink:href="#star" x="75" y="250" />
    <use id="star8" xlink:href="#star" x="350" y="150" />
    <use id="star9" xlink:href="#star" x="250" y="180" />
    <use id="star10" xlink:href="#star" x="350" y="40" />
    <use id="star11" xlink:href="#star" x="50" y="180" />
    <use id="star12" xlink:href="#star" x="270" y="160" />
    <use id="star13" xlink:href="#star" x="420" y="270" />
    <use id="star14" xlink:href="#star" x="20" y="120" />
    <use id="star15" xlink:href="#star" x="55" y="240" />
    <use id="star16" xlink:href="#star" x="150" y="200" />
    </g>
    <!-- Animate the sunset -->
    <animate id = "sunset" xlink:href="#sun"
    attributeName="cy"
    from="100"
    to="450"
    begin="00:00:00"
    dur="17s"
    fill="freeze"/>
    <!-- Animate the clouds drifting -->
    <animate id = "cloud1move" xlink:href="#cloud1"
    attributeName="x"
    from="0"
    to="500"
    begin="00:00:00"
    dur="20s"
    fill="freeze"/>
    <animate id = "cloud2move" xlink:href="#cloud2"
    attributeName="x"
    from="200"
    to="300"
    begin="00:00:00"
    dur="20s"
    fill="freeze"/>
    <animate id = "cloud3move" xlink:href="#cloud3"
    attributeName="x"
    from="50"
    to="0"
    begin="00:00:00"
    dur="20s"
    fill="freeze"/>
    <!-- Animate the sky Darkening as the sun sets, first to orange, then to black -->
    <animate id = "skyDarken" xlink:href="#sky"
    attributeName="fill"
    from="cyan"
    to="orange"
    begin="12"
    dur="3s"
    fill="freeze"/>
    <animate id = "skyDarken2" xlink:href="#sky"
    attributeName="fill"
    from="orange"
    to="black"
    begin="15"
    dur="3s"
    fill="freeze"/>
    <!-- As the sky darkens, fade the moon in -->
    <animate id = "moonrise" xlink:href="#moon"
    attributeName="opacity"
    from="0"
    to="1"
    begin="15"
    dur="3s"
    fill="freeze"/>
    <!-- fade the clouds out -->
    <animate id = "cloudfade" xlink:href="#cloudGroup"
    attributeName="opacity"
    from="1"
    to="0"
    begin="15"
    dur="3s"
    fill="freeze"/>
    <!-- fade the clouds out -->
    <animate id = "starsFadeIn" xlink:href="#starsGroup"
    attributeName="opacity"
    from="0"
    to="1"
    begin="18"
    dur="3s"
    fill="freeze"/>
    </svg>


       收藏   分享  
    顶(0)
      




    ----------------------------------------------
    事业是国家的,荣誉是单位的,成绩是领导的,工资是老婆的,财产是孩子的,错误是自己的。

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/20 17:24:00
     
     simplelife 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:6
      积分:77
      门派:XML.ORG.CN
      注册:2004/7/29

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给simplelife发送一个短消息 把simplelife加入好友 查看simplelife的个人资料 搜索simplelife在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看simplelife的博客2
    发贴心情 
    老大
    这个太强了
    我给同事看
    他们都说“不是挺简单的吗”
    我给他们指着文件名的时候就都跳了起来喊:"不是flash啊"
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/26 19:54:00
     
     SCYANGYU 帅哥哟,离线,有人找我吗?处女座1971-9-20
      
      
      威望:7
      等级:大四(每天看1小时莱昂氏)
      文章:217
      积分:1281
      门派:XML.ORG.CN
      注册:2005/2/17

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给SCYANGYU发送一个短消息 把SCYANGYU加入好友 查看SCYANGYU的个人资料 搜索SCYANGYU在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看SCYANGYU的博客3
    发贴心情 
    很好的例子!

    谢谢楼主!

    ----------------------------------------------
    http://borland.mblogger.cn/scyangyu/

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/2/18 13:52:00
     
     vinson1020 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:4
      积分:75
      门派:XML.ORG.CN
      注册:2005/5/8

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给vinson1020发送一个短消息 把vinson1020加入好友 查看vinson1020的个人资料 搜索vinson1020在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看vinson1020的博客4
    发贴心情 
    楼主,可以联系我吗?有问题向你请教.QQ:346864587
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/5/8 21:02:00
     
     zzzzzz2 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:40
      积分:150
      门派:XML.ORG.CN
      注册:2005/5/10

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给zzzzzz2发送一个短消息 把zzzzzz2加入好友 查看zzzzzz2的个人资料 搜索zzzzzz2在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看zzzzzz2的博客5
    发贴心情 
    看来人间处处是高手啊!!~~~
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/5/10 23:52:00
     
     weiwei530530 帅哥哟,离线,有人找我吗?白羊座1982-4-19
      
      
      等级:大二期末(数据结构考了98分!)
      文章:56
      积分:359
      门派:XHTML.ORG.CN
      注册:2003/12/23

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给weiwei530530发送一个短消息 把weiwei530530加入好友 查看weiwei530530的个人资料 搜索weiwei530530在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看weiwei530530的博客6
    发贴心情 
    ok good
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/5/19 22:24:00
     
     keeponline 美女呀,离线,快来找我吧!天秤座1975-10-21
      
      
      威望:4
      等级:大四寒假(收到IBM的Offer啦)
      文章:190
      积分:1150
      门派:W3CHINA.ORG
      注册:2005/1/20

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给keeponline发送一个短消息 把keeponline加入好友 查看keeponline的个人资料 搜索keeponline在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看keeponline的博客7
    发贴心情 
    楼主你自己的东西吗?

    ----------------------------------------------
    买书不等于读书,读书不一定要买书。

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/5/20 9:25:00
     
     bobosvg 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:4
      积分:73
      门派:XML.ORG.CN
      注册:2005/3/29

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给bobosvg发送一个短消息 把bobosvg加入好友 查看bobosvg的个人资料 搜索bobosvg在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看bobosvg的博客8
    发贴心情 
    请问楼主
    这个是用什么编辑的?

    写字本 吗?

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/5/22 1:48:00
     
     pinksunny 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:71
      门派:XML.ORG.CN
      注册:2005/4/10

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给pinksunny发送一个短消息 把pinksunny加入好友 查看pinksunny的个人资料 搜索pinksunny在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看pinksunny的博客9
    发贴心情 
    强!!
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/8/2 16:40:00
     
     qtsh 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:18
      积分:140
      门派:XML.ORG.CN
      注册:2005/5/8

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给qtsh发送一个短消息 把qtsh加入好友 查看qtsh的个人资料 搜索qtsh在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 引用回复这个贴子 回复这个贴子 查看qtsh的博客10
    发贴心情 
    谢谢楼主!!
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/8/13 10:15:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 SVG/GML/VRML/X3D/XAML 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2025/6/26 11:15:01

    本主题贴数14,分页: [1] [2]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    175.781ms