Skip to content

gkajs/gka-tpl-canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

68c92c7 · Mar 1, 2018

History

17 Commits
Dec 16, 2017
Feb 9, 2018
Jul 22, 2017
Jul 26, 2017
Mar 1, 2018
Jul 22, 2017
Feb 9, 2018
Feb 9, 2018
Feb 9, 2018

Repository files navigation

注:已内置到gka中,仓库迁移至gka

gkatemplatew

gka-tpl-canvas

gka 文件生成模板,一键式生成 canvas 序列帧动画文件,并内置优化。

在线示例  示例代码

内置优化

  • 开启相同帧图片复用 ✓
  • 开启空白裁剪优化 ✓
  • 开启合图优化 ✓

Install

$ npm install -g gka                # install gka

Usage

$ gka <dir> -t canvas [options]

Example

$ gka E:\gka-test\img -t canvas
BeforeAfter

./img
├── hello-01.png
├── hello-02.png
├── hello-03.png
├── hello-04.png
├── hello-05.png
└── ...

./gka-hello
└── gka.html
└── data.js
└── img
    └── gka_sprites.png

Use GKA

https://github.com/joeyguo/gka

About

gka canvas template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published