上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 97 下一页
摘要: threejs 透明贴图的方法 function init() { //设置渲染窗口的大小 var canvaswidth=window.innerWidth; var canvasheight=window.innerHeight; renderer = new THREE.WebGLRender 阅读全文
posted @ 2021-01-25 10:06 newmiracle宇宙 阅读(2386) 评论(0) 推荐(0) 编辑
摘要: pixijs CANVAS putImageData 使用方法 https://codepen.io/a6965921/pen/vYXwwGg const app = new PIXI.Application({ width: 300, height: 150, forceCanvas: true, 阅读全文
posted @ 2021-01-24 11:28 newmiracle宇宙 阅读(352) 评论(0) 推荐(0) 编辑
摘要: html5 canvas抠图的方法 <!DOCTYPE html> <html> <body style="backgournd:#000"> <canvas id="myCanvas" width="300" height="150" style="border:1px solid #d3d3d3 阅读全文
posted @ 2021-01-22 20:45 newmiracle宇宙 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: pixijs shader 设置透明度的方法 precision mediump float; varying vec2 vTextureCoord; varying vec4 vColor; uniform sampler2D uSampler; uniform sampler2D noise; 阅读全文
posted @ 2021-01-18 16:21 newmiracle宇宙 阅读(519) 评论(0) 推荐(0) 编辑
摘要: pixijs shader 传入多张图片到片段着色器的方法 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title> {$title} </title> <meta content="width=device-w 阅读全文
posted @ 2021-01-17 20:28 newmiracle宇宙 阅读(226) 评论(0) 推荐(0) 编辑
摘要: php curl form-data上传file方法 <?php class UploadPart { protected static $url; protected static $delimiter; protected static $instance; public function __ 阅读全文
posted @ 2021-01-09 19:45 newmiracle宇宙 阅读(2174) 评论(0) 推荐(1) 编辑
摘要: css3png图片渐变动画 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>{$title}</title> <meta name="viewport" content="width=device-wid 阅读全文
posted @ 2021-01-06 21:49 newmiracle宇宙 阅读(372) 评论(0) 推荐(0) 编辑
摘要: js提高首屏加载速度的方法 直接动态加载就行 不要用ansy defer什么的 都是堵塞主线程渲染的 阅读全文
posted @ 2021-01-06 19:26 newmiracle宇宙 阅读(212) 评论(0) 推荐(0) 编辑
摘要: css3图片大小自适应的方法(不采取拉伸) width: 100%; height: 100%; overflow: hidden; background-size: cover; background-position: center; 我这里说下 background-size: cover; 阅读全文
posted @ 2020-12-30 19:02 newmiracle宇宙 阅读(2296) 评论(0) 推荐(0) 编辑
摘要: phpredis最简洁的分段加锁 $kucun = 20; $key = '11'; // 进行分段 if ($kucun <= 5) { $islock = \RedisClient::lock($key, 5); // 不需要分段了 } else { // 设置每段库存为4 $kucunduan 阅读全文
posted @ 2020-12-28 21:50 newmiracle宇宙 阅读(274) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 97 下一页