Skip to content

chenjiandongx/lolly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

文字动态图生成工具

这是一个用于生成文字动态图的工具,灵感来自于一个 Go 项目(项目地址没找到...)。

安装

$ pip install lolly

用法

点击图片可预览完整动图效果

$ lolly --help

Usage: lolly [OPTIONS] WORDS

  WORDS: The words you want to display in a gif image

Options:
  -w, --width INTEGER      Image width (default 400)
  -h, --height INTEGER     Image height (default 400)
  -b, --bg-color TEXT      Background color (default 'white')
  -s, --font-size INTEGER  Font size (default 50)
  -c, --font-color TEXT    Font color (default 'red')
  -t, --font-type TEXT     Font type (default 'Microsoft YaHei')
  -d, --duration INTEGER   Animation duration (default 400)
  -p, --path TEXT          Output path (default 'out.gif')
  --help                   Show this message and exit.

示例

$ lolly "talk is cheap show me your picture"

out

$ lolly "python is the best language in the world" -b "yellow" -c "green"

out

$ lolly "love you more than I can say" -b "pink" -c "blue" -d 350

out

$ lolly "陈 独 秀 同 志 请 坐 下" -s 80 -b "#eee"

out

License

MIT ©chenjiandongx

About

🍭 文字动态图生成工具

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages