视频抠除指定的背景颜色播放
摘要:<template> <div style="background: red; padding: 20px"> <video ref="videoEl" src="/movie.mp4"></video> <hr /> <canvas ref="canvasEl"></canvas> <hr />
阅读全文
threejs使用第一章
摘要:目录一、快速入门1、基础案例2、gui.js3、知识点4、加载外部三维模型(gltf) 一、快速入门 1、基础案例 <template> <div class="three-container" ref="domElement"></div> </template> <script> import
阅读全文
canvas图层添加拖拽事件
摘要:<template> <div style="height: 100%;text-align: center"> <canvas id="cvs" width="600" height="600"></canvas> </div> </template> <script> export defaul
阅读全文
echarts-3D地图
摘要:一、echarts常用属性 二、3D地图 1、安装 npm i -S echarts@4.9.0 echarts-gl//echarts5会报错 2、编码 a、geojson { "type": "FeatureCollection", "features": [ { "type": "Featur
阅读全文
百度地图绘制3D棱柱
摘要:一、引入脚本 <script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=你的ak"></script> 二、编码 <template> <div style="height: 100%;positi
阅读全文
threejs入门简单例子
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>test</title> <style> body{ margin: 0; overflow: hidden; } </style> <script src="
阅读全文
canvas基础
摘要:<template> <div style="width: 100%;height: 100%;"> <div class="contentcenter"> <canvas width="600" height="600" id="mycanvas" style="border: 1px solid
阅读全文