会员
众包
新闻
博问
闪存
赞助商
Trae
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
weihexin
博客园
首页
新随笔
联系
管理
订阅
随笔 - 101 文章 - 0 评论 - 0 阅读 -
41210
[置顶]
javascript js WebGL WebGL2 后期处理特效之点击水波纹涟漪例子
摘要: 先来看结果图(转.gif掉帧了): 完整源码分享网址: https://share.weiyun.com/Vpkp5KP3 1 首先初始化用到的所有图片: 1 const images = [ 2 "./img/girls.jpg", 3 "./img/ball.png", 4 "./img/wat
阅读全文
posted @ 2024-08-03 00:41 鸡儿er
阅读(302)
评论(0)
推荐(0)
[置顶]
test 2D渲染器 WebGL WebGL2
摘要: 1 import { Box, Matrix3, Vector2 } from './Utils.js'; 2 import { Shape, ShapeUtils, SplineCurve } from './TwoUtils.js'; 3 4 const BlendEquationAdd = [
阅读全文
posted @ 2024-07-30 20:02 鸡儿er
阅读(76)
评论(0)
推荐(0)
[置顶]
可视化调试某个js对象的属性UI插件 class HTUI
摘要: 依赖的类: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "antiquewhite": "#fae
阅读全文
posted @ 2023-03-05 20:24 鸡儿er
阅读(176)
评论(0)
推荐(0)
[置顶]
记录写了6年代码的心得
摘要: 心得: 写代码的人有多舒服, 运行代码的电脑就有多难受! 强类型语言与弱类型语言的区别就能很好的体现 现在的js的更新我个人没法理解,完全是奔着更多人去的 如果未来的某天go支持前端我会毫不犹豫的弃用js 我很欣赏go的创始人说的一句话: 建议go加一个三元判断语句! go回复:条件控制语句一个就够
阅读全文
posted @ 2023-02-27 22:24 鸡儿er
阅读(121)
评论(0)
推荐(0)
[置顶]
go A*寻路笔记
摘要: 1 func absInt(x int) int { 2 if x < 0 { 3 return -x 4 } 5 return x 6 } 下面会用到此方法, int类型值取绝对值 1 type sp_item struct { 2 x int 3 y int 4 g int 5 h int 6
阅读全文
posted @ 2023-02-26 16:07 鸡儿er
阅读(104)
评论(0)
推荐(0)
[置顶]
测试 CanvasImageScroll 的参数 option.isPage 画布的滚动条变异成拖拽翻页效果(注意桌面端无效):
摘要: index.html: 1 <!DOCTYPE html> 2 <html lang = "zh-cn"> 3 4 <head> 5 <title>testCanvas</title> 6 <meta charset = "utf-8" /> 7 <meta name="viewport" cont
阅读全文
posted @ 2023-02-17 17:13 鸡儿er
阅读(19)
评论(0)
推荐(0)
[置顶]
js画布封装之平铺(排版)
摘要: 实现代码: 1 import { UTILS } from "./Utils.js"; 2 import { CanvasImageDraw, CanvasEvent, CanvasImageScroll, CanvasImageCustom } from "./ElementUtils.js";
阅读全文
posted @ 2023-02-04 20:49 鸡儿er
阅读(104)
评论(0)
推荐(0)
[置顶]
js画布封装之测试旋转
摘要: 依赖: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyPointA = null, __emptyContext = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7
阅读全文
posted @ 2023-02-03 17:42 鸡儿er
阅读(15)
评论(0)
推荐(0)
[置顶]
js 判断当前点到起点是否是顺时针
摘要: 1 /* Point 2 parameter: 3 x = 0, y = 0; 4 5 attribute 6 x, y: Number; 7 8 method: 9 set(x, y): this; 10 angle(origin): Number; 11 copy(point): this; 1
阅读全文
posted @ 2022-10-20 21:15 鸡儿er
阅读(34)
评论(0)
推荐(0)
[置顶]
js 以图片上的某个位置来缩放这个图片
摘要: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant
阅读全文
posted @ 2022-10-04 01:12 鸡儿er
阅读(41)
评论(0)
推荐(0)
[置顶]
js以树结构展示js对象
摘要: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant
阅读全文
posted @ 2022-10-02 17:33 鸡儿er
阅读(78)
评论(0)
推荐(0)
[置顶]
ThreeJS(javascript 3D库) 一些常用的功能
摘要: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant
阅读全文
posted @ 2022-09-29 10:54 鸡儿er
阅读(146)
评论(0)
推荐(0)
[置顶]
js 原生 canvas 颜色调试器 (CanvasImageRender.js)
摘要: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant
阅读全文
posted @ 2022-09-20 15:56 鸡儿er
阅读(46)
评论(0)
推荐(0)
[置顶]
js canvas2D CanvasImageRender.js 之 带图标的菜单
摘要: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant
阅读全文
posted @ 2022-09-18 08:00 鸡儿er
阅读(44)
评论(0)
推荐(0)
[置顶]
js 2d画布 CanvasImageRender.js
摘要: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant
阅读全文
posted @ 2022-09-14 15:38 鸡儿er
阅读(124)
评论(0)
推荐(0)
[置顶]
CanvasImageRender 预设UI之按钮
摘要: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff", 7 "ant
阅读全文
posted @ 2022-09-10 07:36 鸡儿er
阅读(45)
评论(0)
推荐(0)
[置顶]
用原生js canvas 播放视频示例
摘要: 前言: 为什么要用canvas渲染视频? 个人理解,不喜勿喷! 用来测试的视频是我在某个视频网站按F12偷来的(它们并不想用户下载视频), 所以用canvas渲染视频增加视频盗取的难度吧! H5的video控件太丑,不可自定义, 所以也可以用canvas创建自定义的视频控件 ... 创建 canva
阅读全文
posted @ 2022-09-09 21:16 鸡儿er
阅读(1581)
评论(0)
推荐(0)
[置顶]
原生 js 代码实现滚动条惯性效果
摘要: 依赖内裤: 1 "use strict"; 2 3 var __emptyPoint = null, __emptyContext = null, __emptyPointA = null; 4 5 const ColorRefTable = { 6 "aliceblue": "#f0f8ff",
阅读全文
posted @ 2022-09-07 21:05 鸡儿er
阅读(216)
评论(0)
推荐(0)
[置顶]
记录解决安装 golang easyjson json包遇到的坑(有库但没有可执行文件)
摘要: 为什么要使用 easyjson 包: 因为解析json原生包用的是反射所以性能较差, 用 easyjson 比原生json包快好几倍 安装: cmd 输入下载代码 go get -u github.com/mailru/easyjson/ 坑(我的golang版本 go1.16.7 windows/
阅读全文
posted @ 2022-08-08 10:42 鸡儿er
阅读(603)
评论(0)
推荐(0)
[置顶]
js UI控件
摘要: 1 /* CanvasAnimateUI UI控件 2 依赖: 3 ImageViewer 4 MenuView 5 ColorTestViewer 6 7 注意: 8 传入的 .target 和 .data: CanvasUI不污染其内容(既只读), 所以可以重复利用; 9 一旦初始化完UI后(.
阅读全文
posted @ 2022-05-28 14:01 鸡儿er
阅读(177)
评论(0)
推荐(0)
下一页
公告
昵称:
鸡儿er
园龄:
5年5个月
粉丝:
1
关注:
2
+加关注
<
2025年8月
>
日
一
二
三
四
五
六
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
搜索
随笔分类
css(19)
golang(17)
html(28)
javascript(57)
php(17)
sql(4)
其它(9)
随笔档案
2024年8月(1)
2024年7月(1)
2023年3月(1)
2023年2月(5)
2022年10月(3)
2022年9月(11)
2022年8月(5)
2022年6月(1)
2022年5月(9)
2021年6月(2)
2020年3月(3)
2020年2月(59)
阅读排行榜
1. javascript原生js轮播图(3143)
2. html input元素的所有type属性(1883)
3. 身份证号 手机号 ip 查询接口(1612)
4. 用原生js canvas 播放视频示例(1580)
5. 狗狗为什么不能吃巧克力?(1509)
点击右上角即可分享