摘要:
1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant 阅读全文
摘要:
1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant 阅读全文
摘要:
1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant 阅读全文
摘要:
1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant 阅读全文
摘要:
前言: 为什么要用canvas渲染视频? 个人理解,不喜勿喷! 用来测试的视频是我在某个视频网站按F12偷来的(它们并不想用户下载视频), 所以用canvas渲染视频增加视频盗取的难度吧! H5的video控件太丑,不可自定义, 所以也可以用canvas创建自定义的视频控件 ... 创建 canva 阅读全文
摘要:
废话在后文讲, 具体的 javascript 实现代码: 1 /* 把 target 以相等的比例缩放至 result 大小 2 target, result: Object{width, height}; //也可以是img元素 3 */ 4 setSizeToSameScale(target, 阅读全文
摘要:
依赖内裤: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 阅读全文
摘要:
↑ 测试图 依赖类: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8 阅读全文
摘要:
数组的内容: data.length: w * h * 4 r: 0 - 255 g: 0 - 255 b: 0 - 255 a: 0 - 255 Math.round(255 * a) 数组遍历: const data = context.getImageData(0, 0, canvas.wid 阅读全文
摘要:
"use strict"; var __emptyPoint = null, __emptyContext = null; const ColorRefTable = [ ['aliceblue','#f0f8ff'], ['antiquewhite','#faebd7'], ['aqua','#0 阅读全文