three实现一个蝴蝶飞舞动画效果代码

代码语言:html

所属分类:动画

代码描述:three实现一个蝴蝶飞舞动画效果代码

代码标签: 蝴蝶 飞舞 动画 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">


</head>

<body>
    <canvas class="p-canvas-webgl" id="canvas-webgl"></canvas>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/three.84.js"></script>

    <script>

        'use strict';

        function _classCallCheck(instance, Constructor) {
            if (!(instance instanceof Constructor)) {
                throw new TypeError("Cannot call a class as a function");
            }
        }

        var ConsoleSignature = function () {
            function ConsoleSignature() {
                _classCallCheck(this, ConsoleSignature);

                this.message = 'created by yoichi kobayashi';
                this.url = 'http://www.tplh.net';
                this.show();
            }

            ConsoleSignature.prototype.show = function show() {
                if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
                    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0