css3怎么做出按下按钮就会有爆炸的效果

html-css010

css3怎么做出按下按钮就会有爆炸的效果,第1张

修改相关的参数,可以达到爆炸效果

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <title>twitterLove</title>

</head>

<body>

<canvas width="100" height="100" style="border: 1px black solid">

    必须要把style写在内联,不然会变成椭圆。而且width与height要单独写出来

    注意:1,每画一个图形都要提起笔。不然会连在一起

    2,arc的(centerX[圆心横坐标,以父节点的右上角为坐标原点,向左向下建立坐标轴],centerY,r[半径],

    startAngle[起始点的角度。起始以(1,0)表示0,(0,1)表示3/2*PI计算。当设置为逆时针的时候画出来是起点到终点之间的扇形出去中心三角],

    endAngle,anticlockwise(是否逆时针))

    3,画图的时候要计算好坐标

    4,最好以角度值百分比计算。流式布局更能适应各种大小的缩放

    5,注意提取公共函数

    6,要划分步骤

    7,注意上一幅图与下一幅图的关系。用clearRect来清除

</canvas>

<script>

    var canvas=(document.getElementsByTagName("canvas"))[0]//获取绘图区域,是一个正方形区域

    var ctx=canvas.getContext("2d")//获取画笔

    //必须写在外面,公共的

    var centerX=(canvas.width)*0.5

    var centerY=(canvas.height)*0.5//获取中心,是一个正方形

    //获得一个爱心

    function love(color,centerX,centerY,size){

        ctx.beginPath()

        //上半部

        var smallRadius=Math.round(centerX/size)//小圆的半径

        var smallMoveLen=smallRadius*Math.sqrt(3)/2

        ctx.fillStyle=color||"red"

        ctx.arc(centerX-smallMoveLen,centerY,smallRadius,Math.PI*7/4,Math.PI,true)

        ctx.arc(centerX+smallMoveLen,centerY,smallRadius,0,Math.PI*5/4,true)

        //下半部

        var bigRadius=smallRadius*2.73

        ctx.arc(centerX+smallMoveLen,centerY,bigRadius,Math.PI,Math.PI*0.6,true)

        ctx.arc(centerX-smallMoveLen,centerY,bigRadius,Math.PI*0.4,0,true)

        ctx.fill()

        ctx.closePath()

    }

    love("grey",centerX,centerY,8)//默认灰色

    //注册监听

    canvas.addEventListener("click",function () {

        if(ctx.fillStyle=="#808080"){//表示为灰色

           // alert("点赞")

            //1,爱心消失//清除画板内容

            ctx.clearRect(0,0,centerX*2,centerY*2)

            //动态图

            var bigRadius=centerX/2

            var midRadius=centerX/5

            var smallRadius=centerX/10

            //2,小圆,圆心都是中心位置

            setTimeout(function () {

                ctx.beginPath()

                ctx.fillStyle="#FF6BDB"

                ctx.arc(centerX,centerY,smallRadius,0,2*Math.PI,false)

                ctx.fill()

                ctx.closePath()//必须要提笔。不然和前面一只笔相当于没提起来

            },100)

            //3,中圆

            setTimeout(function () {

                ctx.beginPath()

                ctx.fillStyle="#9FD5FF"

                ctx.arc(centerX,centerY,midRadius,0,2*Math.PI,false)

                ctx.fill()

                ctx.closePath()

            },200)

            //4,大圆

            setTimeout(function () {

                ctx.beginPath()

                ctx.fillStyle="#FF84A6"

                ctx.arc(centerX,centerY,bigRadius,0,2*Math.PI,false)

                ctx.fill()

                ctx.closePath()

            },300)

            //5,小爱心

            setTimeout(function () {

                ctx.clearRect(0,0,centerX*2,centerY*2)

                ctx.beginPath()

                ctx.fillStyle="#FF84A6"

                ctx.arc(centerX,centerY,bigRadius,0,2*Math.PI,false)

                ctx.fill()

                ctx.closePath()

                ctx.beginPath()

                ctx.fillStyle="#ffffff"

                ctx.arc(centerX,centerY,midRadius*2,0,2*Math.PI,false)

                ctx.fill()

                ctx.closePath()

                ctx.beginPath()

                love("purple",centerX,centerY,16)

                ctx.closePath()

            },400)

            //6,四周小圆

            setTimeout(function () {

                ctx.clearRect(0,0,centerX*2,centerY*2)

                var e=bigRadius/(Math.sqrt(2))

                var centerXArr=[centerX-bigRadius,centerX-e,centerX,centerX+e,centerX+bigRadius,centerX+e,centerX,centerX-e]

                var centerYArr=[centerY,centerY-e,centerY-bigRadius,centerY-e,centerY,centerY+e,centerY+bigRadius,centerY+e]

                for(var i=0i<8i++){

                    ctx.beginPath()

                    ctx.fillStyle="blue"

                    ctx.arc(centerXArr[i],centerYArr[i],smallRadius/4,0,2*Math.PI,false)

                    ctx.fill()

                    ctx.closePath()

                }

                ctx.fillStyle="#ff0000"

                love("ff0000",centerX,centerY,8)//red

            },500)

            //7,红色大爱心

            setTimeout(function () {

                ctx.clearRect(0,0,centerX*2,centerY*2)

                ctx.beginPath()

                love("ff0000",centerX,centerY,8)

                ctx.closePath()

            },600)

        }

        else if(ctx.fillStyle=="#ff0000"){//表示为红色

           // alert("取消赞")

            ctx.fillStyle="#ff0000"

            love("#808080",centerX,centerY,8)

        }

    },false)

</script>

</body>

</html>

22次地下试爆,23次地面、大气试爆:

中国是核武器国家中核试验次数最少的。

# 测试编号和日期 产生当量 类型 方法 注释

( #45)

1996 年7月29 日 1-5 kT 地下 -- 新近试验

( #44)

1996 年6月8 日 20-80 kT 地下 -- 双弹头试爆

( #43)

1995 年8月17 日 60-80 kT 地下 -- --

( #42)

1995 年5月15 日 95 kT 地下 -- --

( #41)

1994 年10月7 日 40-50 kT 地下 -- --

( #40)

1994 年6月10 日 40-50 kT 地下 -- --

( #39)

1993 年10月5 日 40-80 kT 地下 -- --

( #38)

1992 年9月25 日 1-20 kT( 8 kT) 地下 -- --

( #37)

1992 年5月21 日 660 kT - 1 MT( 650 kT) 地下 -- 地下测试

( #36)

1990 年8月16 日 50-200 kT( 189 kT) 地下 -- --

( #35)

1990 年5月26 日 15-65 kT( 11.5 kT) 地下 -- --

( #34)

1988 年9月29 日 1-20 kT( 2.5 kT) 地下 -- 增强型1-5 kT 辐射武器(中子弹) 测试

( #33)

1987 年6月5 日 250 kT 地下 -- --

( #32)

1984 年12月19 日 5-50 kT( 1.3 kT) 地下 -- --

( #31)

1984 年10月3 日 15-70 kT( 9.1 kT) 地下 -- --

( #30)

1983 年10月6 日 20-100 kT( 14.9 kT) 地下 -- --

( #29)

1983 年5月4 日 约1 kT 地下 -- --

( #28)

1982 年10月5 日 3-15 kT 地下 -- --

( #27)

1980 年10月16 日 200 kT - 1 MT 大气 -- 最后一次大气核爆炸

( #26)

1979 年9月13 日 微量 地下 -- --

( #25)

1978 年12月14 日 在20 kT 以下 大气 -- 裂变

( #24)

1978 年10月14 日 在20 kT( 3.4 kT) 以下 地下杆轴方法首次杆轴爆炸

( #23)

1978 年3月15 日 6-20 kT 大气 -- 裂变

( #22)

1977 年9月17 日 在20 kT 以下 大气 -- 裂变

( #21)

1976 年11月17 日 4-5 mT 大气 空气( H-6 轰炸机) 热核;最大当量试验

( #20)

1976 年10月17 日 10-20 kT( 2.6 kT) 地下 -- 裂变

( #19)

1976 年9月26 日 200 kT 大气 -- 裂变; 局部熔解:“特殊核弹”

( #18)

1976 年1月23 日 在20 kT 以下 大气 -- 裂变

( #17)

1975 年10月27 日 在10 kT( 2.5 kT) 以下 地下 -- 裂变

( #16)

1974 年6月17 日 200 kT - 1 MT 大气 -- 热核

( #15)

1973 年6月27 日 2-3 mT 大气 空气( H-6 轰炸机) 热核

( #14)

1972 年3月18 日 100-200 kT 大气 空气( H-6 轰炸机) 包含激发设备和Pu,热核弹头

( #13)

1972 年1月7 日 8-20 kT 大气 空气( Q-5 轰炸机) 裂变;

包含Pu

( #12)

1971 年11月18 日 15-20 kT 大气 地面( 塔安装) 裂变;

包含Pu

( #11)

1970 年10月14 日 3-3.4 MT 大气 空气( H-6 轰炸机) 热核

( #10)

1969 年9月29 日 约3 MT 大气 空气( H-6 轰炸机) 热核

( #9)

1969 年9月23 日 20-25 kT( 19.2 kT) 地下 隧道方法 裂变;

第一次地下测试

( #8)

1968 年12月27 日 3 mT 大气 空气( H-6 轰炸机) 高热原子核反应设备;

第一次使用钚( U235,带有一定Pu)的热核试验

( #7)

1967 年12月24 日 15-25 kT 大气 空气( H-6 轰炸机) 裂变( U235, U238,和 Lithium - 6)

( #6)

1967 年6月17 日 3-3.3 MT 大气 空气( H-6 轰炸机) 第一次完整产出多级式的高热原子核反应测试( U235)

( #5)

1966 年12月28 日 122 kT / 300-500 kT 大气 地面( 塔安装) 推进裂变( U235); 测试过去确认设计的一台二级设备的原理

( #4)

1966 年10月27 日 12-30 kT 大气 DF - 2( CSS - 1) MRBM 裂变( U235)

( #3)

1966 年5月9 日 200-300 kT/ 大气 空气( H-6 轰炸机) 推进裂变( U235);

推进的裂变设备( 使用锂6) 的第一次试验

( #2)

1965 年5月14 日 20-40 kT 大气 空气( H-6 轰炸机) 裂变( U235);

第一此由飞机空投试爆

( #1)

1964 年10月16 日 20-22 kT 大气 地面( 塔安装) 裂变( U235);

1959 年6月苏联拒绝提供原型设备后,我国的第一个核爆炸,命名“596计划”以代表此事件。当然只能是公开的数字,80年代的几次中子弹试爆哪次公开过,都是很久以后为反驳美国‘核技术盗窃案’才公开的。

缅北地区的民族地方武装组织 相对而言 佤邦 掸邦第二特区 ,小勐拉 第四特区 , 果敢缅甸民族民主同盟军 原来的一特区 ,这些靠近中缅边境的组织原先就是缅共人民军演变而来 人民军原来是受中国支持的 再说这些地区原先就是属于中国 文化 方面 汉语是当地官方语言 经济上严重依赖中国方面 你到这些地区 打电话不算国际漫游的 所以这些组织与中国关系相对是友好的 而 克钦独立组织 方面 因为 在原来英属时期 分而治之 对于克钦族大力扶持 所以克钦族绝大多数信仰基督教 领导方面有相大一部分有西方留学经历 文化上更接近与西方的价值观 所以相对于而言 对华方面有一定距离的。