-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
562 lines (398 loc) · 18 KB
/
index.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
<!DOCTYPE html>
<html lang="zh-cn" color-mode=light>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>iaosee</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="google" content="notranslate" />
<meta name="keywords" content="iaosee, iaosee's blog, Web, Front-end, JavaScript, TypeScript, Graphics, 2D/3D, Canvas, WebGL">
<meta name="description" content="Web Developer, Focus on Front-end, JavaScript, Graphics. The soul of a poet attached to the craftsman's body.">
<meta name="author" content="iaosee">
<link rel="icon" href="/images/icons/favicon-16x16.ico" type="image/png" sizes="16x16">
<link rel="icon" href="/images/icons/favicon-32x32.ico" type="image/png" sizes="32x32">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="//at.alicdn.com/t/font_1445822_p6ry5n7lrr.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/highlight.js/9.18.1/styles/github.min.css" name="highlight-style" mode="light">
<link rel="stylesheet" href="https://cdn.bootcss.com/highlight.js/9.18.1/styles/an-old-hope.min.css" name="highlight-style" mode="dark">
<script>
var CONFIG = window.CONFIG || {};
var ZHAOO = window.ZHAOO || {};
CONFIG = {
isHome: true,
fancybox: true,
pjax: false,
loading: {
gif: '/images/theme/loading.gif',
lottie: ''
},
lazyload: {
enable: true,
only_post: 'false',
loading: {
gif: '/images/theme/loading.gif',
lottie: ''
}
},
donate: {
enable: false,
alipay: 'https://pic.izhaoo.com/alipay.jpg',
wechat: 'https://pic.izhaoo.com/wechat.jpg'
},
galleries: {
enable: true
},
fab: {
enable: true,
always_show: false
},
carrier: {
enable: true
},
daovoice: {
enable: true
},
preview: {
background: {
default: '',
api: 'https://source.unsplash.com/featured/1920x1080/?nature,scenery,arts'
},
motto: {
default: '菡萏香销翠叶残,西风愁起绿波间。',
typing: true,
api: 'https://v2.jinrishici.com/one.json',
data_contents: '["data","content"]'
},
},
qrcode: {
enable: false,
type: 'url',
image: 'https://pic.izhaoo.com/weapp-code.jpg',
},
toc: {
enable: true
},
scrollbar: {
type: ''
},
notification: {
enable: false,
delay: 4500,
list: '',
page_white_list: '',
page_black_list: ''
},
search: {
enable: false,
path: ''
}
}
</script>
<script src="https://cdn.bootcdn.net/ajax/libs/mathjs/7.5.1/math.min.js"></script>
<meta name="generator" content="Hexo 6.0.0"></head>
<body class="lock-screen">
<div class="loading" id="loading"></div>
<nav class="navbar">
<div class="left">
<i class="iconfont iconmoono" id="color-toggle" color-toggle="light"></i>
</div>
<div class="center"> </div>
<div class="right">
<i class="iconfont iconmenu j-navbar-menu"></i>
</div>
</nav>
<nav class="menu">
<div class="menu-container">
<div class="menu-close">
<i class="iconfont iconbaseline-close-px"></i>
</div>
<ul class="menu-content"><li class="menu-item">
<a href="/ " class="underline active"> 首页</a>
</li><li class="menu-item">
<a href="/galleries/ " class="underline "> 相册</a>
</li><li class="menu-item">
<a href="/archives/ " class="underline "> 归档</a>
</li><li class="menu-item">
<a href="/tags/ " class="underline "> 标签</a>
</li><li class="menu-item">
<a href="/categories/ " class="underline "> 分类</a>
</li></ul>
<div class="menu-copyright"><p>Powered by <a target="_blank" href="https://hexo.io">Hexo</a> | Theme - <a target="_blank" href="https://github.com/izhaoo/hexo-theme-zhaoo">zhaoo</a></p></div>
</div>
</nav>
<main id="main">
<div class="preview">
<!-- <nav class="navbar j-navbar-menu">
<i class="iconfont iconmenu"></i>
</nav> -->
<div class="preview-image">
<div class="preview-overlay">
<svg class="preview-waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto">
<defs>
<path id="gentle-wave"
d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
</defs>
<g class="preview-parallax">
<use xlink:href="#gentle-wave" x="48" y="0" fill="rgba(var(--color-background-rgb),0.7"></use>
<use xlink:href="#gentle-wave" x="48" y="3" fill="rgba(var(--color-background-rgb),0.5)"></use>
<use xlink:href="#gentle-wave" x="48" y="5" fill="rgba(var(--color-background-rgb),0.3)"></use>
<use xlink:href="#gentle-wave" x="48" y="7" fill="var(--color-background)"></use>
</g>
</svg>
</div>
</div>
<div class="preview-motto-wrapper">
<h2 class="preview-motto" id="motto">
</h2>
<span class="preview-cursor">_</span>
</div>
<div class="preview-scroll">
<a href="#container" class="smooth-scroll"><i class="iconfont iconMouse"></i></a>
</div>
</div>
<div class="container" id="container">
<section class="row post">
<div class="col-lg-4 col-md-6 col-sm-12 post-item">
<div class="post-wrap">
<a href="/2020/12/23/canvas-core-03-synthesis-and-clipping/" class="post-image">
<img class="lazyload" data-original="https://z3.ax1x.com/2020/12/23/r6GktI.png" src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==" draggable="false">
</a>
<div class="post-content">
<div class="post-content-wrap">
<h3 class="post-title"><a href="/2020/12/23/canvas-core-03-synthesis-and-clipping/" title="Canvas 图像合成与剪辑区域" >Canvas 图像合成与剪辑区域</a></h3>
<div class="post-excerpt">
<p class="substr-3">图像合成图像合成就是在画布上将某一个物体(源物体)绘制到另一个物体(目标物体)之上,绘制图形的叠加显示,默认情况下,浏览器会简单的将源物体叠放在目标物体上面。但是可以通过设置绘图环境对象的 gl...</p>
</div>
</div>
<div class="post-info">
<span class="post-info-item"><i class="iconfont iconcalendar"></i>十二月 23, 2020</span>
<span class="post-info-item">
<i class="iconfont iconeye"></i><span id="/2020/12/23/canvas-core-03-synthesis-and-clipping/" class="leancloud-counter" data-flag-title="Canvas 图像合成与剪辑区域"></span>
</span>
<span class="post-info-item">
<i class="iconfont iconheart"></i><span id="/2020/12/23/canvas-core-03-synthesis-and-clipping/" class="leancloud-like" data-flag-title="Canvas 图像合成与剪辑区域"></span>
</span>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 post-item">
<div class="post-wrap">
<a href="/2020/12/10/canvas-core-02-basic-graphic-rendering/" class="post-image">
<img class="lazyload" data-original="https://z3.ax1x.com/2020/12/23/r6DKk8.png" src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==" draggable="false">
</a>
<div class="post-content">
<div class="post-content-wrap">
<h3 class="post-title"><a href="/2020/12/10/canvas-core-02-basic-graphic-rendering/" title="Canvas 基础图形绘制 — 矩形、圆形、曲线、多边形" >Canvas 基础图形绘制 — 矩形、圆形、曲线、多边形</a></h3>
<div class="post-excerpt">
<p class="substr-3">路径绘制在 Canvas 中绘制形状大致分为两个步骤,先是 创建路径,然后为创建的路径 填充颜色。填充颜色可以选择描边或者填充,或者两者同时应用。
CanvasRenderingContext2...</p>
</div>
</div>
<div class="post-info">
<span class="post-info-item"><i class="iconfont iconcalendar"></i>十二月 10, 2020</span>
<span class="post-info-item">
<i class="iconfont iconeye"></i><span id="/2020/12/10/canvas-core-02-basic-graphic-rendering/" class="leancloud-counter" data-flag-title="Canvas 基础图形绘制 — 矩形、圆形、曲线、多边形"></span>
</span>
<span class="post-info-item">
<i class="iconfont iconheart"></i><span id="/2020/12/10/canvas-core-02-basic-graphic-rendering/" class="leancloud-like" data-flag-title="Canvas 基础图形绘制 — 矩形、圆形、曲线、多边形"></span>
</span>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 post-item">
<div class="post-wrap">
<a href="/2020/11/22/canvas-core-01-concept-of-summary/" class="post-image">
<img class="lazyload" data-original="https://z3.ax1x.com/2020/12/23/r63cPx.png" src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==" draggable="false">
</a>
<div class="post-content">
<div class="post-content-wrap">
<h3 class="post-title"><a href="/2020/11/22/canvas-core-01-concept-of-summary/" title="Canvas 基础概念 — 基础、绘制、坐标" >Canvas 基础概念 — 基础、绘制、坐标</a></h3>
<div class="post-excerpt">
<p class="substr-3">基本概念介绍Canvas 是一个 HTML5 新增的东西,MDN 的介绍如下:
Canvas API 提供了一个通过 JavaScript 和 HTML 的 <canvas> 元素...</p>
</div>
</div>
<div class="post-info">
<span class="post-info-item"><i class="iconfont iconcalendar"></i>十一月 22, 2020</span>
<span class="post-info-item">
<i class="iconfont iconeye"></i><span id="/2020/11/22/canvas-core-01-concept-of-summary/" class="leancloud-counter" data-flag-title="Canvas 基础概念 — 基础、绘制、坐标"></span>
</span>
<span class="post-info-item">
<i class="iconfont iconheart"></i><span id="/2020/11/22/canvas-core-01-concept-of-summary/" class="leancloud-like" data-flag-title="Canvas 基础概念 — 基础、绘制、坐标"></span>
</span>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 post-item">
<div class="post-wrap">
<a href="/2020/11/02/Use-Github-Actions-to-automatically-deploy-Hexo-Blog/" class="post-image">
<img class="lazyload" data-original="https://z3.ax1x.com/2020/12/24/rc4UoQ.png" src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==" draggable="false">
</a>
<div class="post-content">
<div class="post-content-wrap">
<h3 class="post-title"><a href="/2020/11/02/Use-Github-Actions-to-automatically-deploy-Hexo-Blog/" title="使用 Github Actions 自动构建部署 Hexo 博客" >使用 Github Actions 自动构建部署 Hexo 博客</a></h3>
<div class="post-excerpt">
<p class="substr-3">介绍这篇文章记录一下使用 GitHub Actions 一步一步实现 Hexo Blog 自动化构建部署到 GitHub Pages 的流程。
GitHub Actions 是类似于 Travi...</p>
</div>
</div>
<div class="post-info">
<span class="post-info-item"><i class="iconfont iconcalendar"></i>十一月 02, 2020</span>
<span class="post-info-item">
<i class="iconfont iconeye"></i><span id="/2020/11/02/Use-Github-Actions-to-automatically-deploy-Hexo-Blog/" class="leancloud-counter" data-flag-title="使用 Github Actions 自动构建部署 Hexo 博客"></span>
</span>
<span class="post-info-item">
<i class="iconfont iconheart"></i><span id="/2020/11/02/Use-Github-Actions-to-automatically-deploy-Hexo-Blog/" class="leancloud-like" data-flag-title="使用 Github Actions 自动构建部署 Hexo 博客"></span>
</span>
</div>
</div>
</div>
</div>
</section>
<section class="paginator">
</section>
</div>
</main>
<footer class="footer">
<div class="footer-social"><a
href="https://github.com/iaosee "
target="_blank"
class="footer-social-item"
onMouseOver="this.style.color= '#9f7be1'"
onMouseOut="this.style.color='#33333D'">
<i class="iconfont icongithub-fill "></i>
</a><a
href="mailto:[email protected] "
target="_blank"
class="footer-social-item"
onMouseOver="this.style.color=#FF3B00"
onMouseOut="this.style.color='#33333D'">
<i class="iconfont iconmail"></i>
</a></div>
<div class="footer-copyright"><p>Powered by <a target="_blank" href="https://hexo.io">Hexo</a> | Theme - <a target="_blank" href="https://github.com/izhaoo/hexo-theme-zhaoo">zhaoo</a></p></div>
</footer>
<div class="fab fab-plus">
<i class="iconfont iconplus"></i>
</div>
<div class="fab fab-daovoice">
<i class="iconfont iconcomment"></i>
</div>
<div class="fab fab-up">
<i class="iconfont iconcaret-up"></i>
</div>
<script src="/js/color-mode.js"></script>
</body>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/script.js"></script>
<script>
$.getScript("//cdn.jsdelivr.net/npm/[email protected]/dist/av-min.js", () => {
AV.init({
appId: 'QRsYxiOY3VGeVhkqx7yJiz0U-gzGzoHsz',
appKey: '1ygwFPYG8IbvlgnrnNXrNeNe',
serverURLs: 'https://leancloud.cn/',
});
const Counter = AV.Object.extend("Counter");
const Like = AV.Object.extend("Like");
const showCount = (Counter) => {
const asyncLimit = new AsyncLimit(2);
$(".leancloud-counter").each(async (e) => {
const url = $(".leancloud-counter").eq(e).attr('id').trim();
const query = new AV.Query("Counter");
query.equalTo("words", url);
let count = await asyncLimit.run(() => query.count());
$(".leancloud-counter").eq(e).text(count ? count : 0);
});
}
const addCount = (Counter) => {
const url = $(".leancloud-counter").length === 1 ? $(".leancloud-counter").attr('id').trim() : 'http://iaosee.com';
var query = new Counter;
query.save({
words: url
});
}
const showLike = (Like) => {
const asyncLimit = new AsyncLimit(2);
$(".leancloud-like").each(async (e) => {
const url = $(".leancloud-like").eq(e).attr('id').trim();
const query = new AV.Query("Like");
query.equalTo("path", url);
let count = await asyncLimit.run(() => query.count());
$(".leancloud-like").eq(e).text(count ? count : 0);
});
}
const addLike = (Like) => {
const url = $(".leancloud-like").length === 1 ? $(".leancloud-like").attr('id').trim() : 'http://iaosee.com';
var query = new Like;
query.save({
path: url,
nickName: 'Anonymous'
});
$(".leancloud-like").addClass('islike');
$(".fab-like").children(".iconfont").removeClass("iconheart").addClass("iconheart-fill").css("color", "#eb3223");
ZHAOO.zui.message({ text: '爱你哦~', type: 'success' });
setTimeout(() => showLike(Like), 1000);
}
const handleLikeClick = () => {
const isLike = $(".leancloud-like").length === 1 && $(".leancloud-like").hasClass('islike') ? true : false;
if (isLike) {
ZHAOO.zui.message({ text: '小心心不可以收回呢~', type: 'warning' });
} else {
addLike(Like);
}
}
$(function () {
addCount(Counter);
showCount(Counter);
showLike(Like);
$(".fab-like").on("click", function () {
handleLikeClick();
});
});
});
</script>
<script>
(function (i, s, o, g, r, a, m) {
i["DaoVoiceObject"] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o), m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
a.charset = "utf-8";
m.parentNode.insertBefore(a, m)
})(window, document, "script", "https://widget.daovoice.io/widget/0f81ff2f.js", "daovoice")
daovoice('init', {
app_id: "fb486b7c"
}, {
launcher: {
disableLauncherIcon: true,
},
});
daovoice('update');
</script>
<script>
(function () {
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
} else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<script defer src='https://hm.baidu.com/hm.js?fa215b20eccf04179a4d316087693164'></script>
</html>