perspective-grid:画布上的两点透视网格

时间:2021-04-29 03:26:52
【文件属性】:
文件名称:perspective-grid:画布上的两点透视网格
文件大小:931KB
文件格式:ZIP
更新时间:2021-04-29 03:26:52
grid canvas perspective JavaScript 透视网格 在画布上的两点透视网格。 安装 npm install perspective-grid 用法 import PerspectiveGrid from "perspective-grid" ; import canvasContext from "canvas-context" ; const { context , canvas } = canvasContext ( "2d" , { width : window . innerWidth , height : window . innerHeight , } ) ; const grid = new PerspectiveGrid ( context , 10 ) ; grid . init ( new Point ( 300 , 380 ) , new Point ( canvas . width - 3
【文件预览】:
perspective-grid-main
----index.html(4KB)
----src()
--------MathHelper.js(3KB)
--------Segment.js(815B)
--------LineEquation.js(1KB)
--------Point.js(580B)
--------PerspectiveGrid.js(11KB)
----web_modules()
--------common()
--------core-js.js(363KB)
--------import-map.json(175B)
--------canvas-context.js(2KB)
--------es-module-shims.js(82KB)
--------dat.gui.js(85KB)
----.npmignore(100B)
----LICENSE.md(1KB)
----README.md(16KB)
----.editorconfig(147B)
----.gitignore(33B)
----screenshot.gif(958KB)
----index.js(286B)
----CHANGELOG.md(403B)
----package-lock.json(3KB)
----package.json(959B)

网友评论