Skip to content

llx07/AutoYurPaint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

环境需求

  • node.js
  • python(PIL,numpy)

安装

npm install

使用方法

准备图像

python gen.py
usage: gen.py [-h] [--width WIDTH] [--height HEIGHT] path

Change the picture to JS

positional arguments:
  path

options:
  -h, --help       show this help message and exit
  --width WIDTH
  --height HEIGHT

指定图片文件,如果指定长度和宽度,则会对图片进行缩放,若只指定了其中一个,会等比例放大。

将图片转化为数组,存在data.js

准备token

./token.txt为你的token,支持多token,用换行符分割

可在控制台运行localStorage.getItem("token");获得你的token

开始维护!

./main.js为主文件

需要修改的地方,第37-38行,为图片左上角地址。若图片大小超过画板则行为未定义。

const startX = <X>
const startY = <Y>;

node main.js 运行

About

Yur画板 脚本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published