shaped.js:using使用画布元素生成酷炫的移动形状

时间:2021-02-24 17:08:31
【文件属性】:
文件名称:shaped.js:using使用画布元素生成酷炫的移动形状
文件大小:88KB
文件格式:ZIP
更新时间:2021-02-24 17:08:31
javascript canvas animation TypeScript shaped.js :lollipop: 使用画布元素生成酷炫的移动形状 安装 yarn add shaped.js # or npm install shaped.js 用法 您可以仅复制此示例并将其更改为您喜欢的值。 import { ShapedCanvas } from "shaped.js" new ShapedCanvas ( document . querySelector ( "#canvas" ) , { // This determines how many lines will be generated. // Just play with the value until you're happy with it. probability : 1 / 40000 , minCount : 8 , colors : [ "rgba
【文件预览】:
shaped.js-master
----.eslintrc.json(189B)
----.gitignore(19B)
----example.html(884B)
----package.json(1KB)
----src()
--------get-value-or-range.ts(285B)
--------index.ts(4KB)
--------random-between.ts(190B)
----.nvmrc(3B)
----LICENSE(11KB)
----tsconfig.json(159B)
----README.md(929B)
----yarn.lock(209KB)

网友评论