Git Product home page Git Product logo

lolly's Introduction

文字动态图生成工具

这是一个用于生成文字动态图的工具,灵感来自于一个 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

lolly's People

Contributors

chenjiandongx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.