A fast way of rendering a tiling image
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
src
test
.babelrc
.editorconfig
.eslintrc
.gitignore
CHANGELOG.md
README.md
package.json
rollup.config.js

README.md

tinyjs-plugin-tiling

A fast way of rendering a tiling image

查看demo

http://tinyjs.net/plugins/tinyjs-plugin-tiling.html#demo

引用方法

起步

首先当然是要引入,推荐NPM方式,当然你也可以使用CDN或下载独立版本,先从几个例子入手吧!

1、最简单的例子

引用 Tiny.js 源码

<script src="https://gw.alipayobjects.com/as/g/tiny/tiny/1.2.0/tiny.js"></script>
var tiling = require('tinyjs-plugin-tiling');
var TilingSprite = tiling.TilingSprite;
// 或者
// import {TilingSprite} from 'tinyjs-plugin-tiling';

依赖

API文档

http://tinyjs.net/plugins/tinyjs-plugin-tiling.html#docs