Giter Site home page Giter Site logo

blackhole's Introduction

black hole

黑洞图片生成器,协助生成微信公众号头图。 自由不侵权,game404 出品。

                                _  _     ___   _  _
  __ _   __ _  _ __ ___    ___ | || |   / _ \ | || |
 / _` | / _` || '_ ` _ \  / _ \| || |_ | | | || || |_
| (_| || (_| || | | | | ||  __/|__   _|| |_| ||__   _|
 \__, | \__,_||_| |_| |_| \___|   |_|   \___/    |_|
 |___/

使用方法

python使用

  1. 安装 pipenv

  2. 安装包 pipenv install

  3. 执行

python blackhole.py --word python
  1. 更多查看帮助
(pywork-Y7-meC5z) C:\pywork\blackhole>python blackhole.py --help
Usage: blackhole.py [OPTIONS]

  黑洞图片生成器,协助生成微信公众号头图。自由不侵权,game404 出品。

  python运行示例:

      python blackhole.py --word docker

      python blackhole.py --word docker --bcolor black --fcolor #ffffff

      python blackhole.py --word docker --fpath some.ttf

  Docker运行示例:

      docker run -it --rm game404/blackhole docker

      ...

Options:
  --word TEXT    图片文字
  --bcolor TEXT  图片背景色,默认白色,支持颜色值['red', 'cyan', 'green', ...]及rgb hex值#ffffff
  --fcolor TEXT  文字颜色,默认docker蓝,支持颜色值['red', 'cyan', 'green', ...]及rgb
                 hex值#ffffff
  --fpath TEXT   字体文件路径,默认空,使用预制字体。也许相对路径更合适。
  -h, --help     Show this message and exit.

docker使用

docker run -it -v $PWD/output:/app/output --rm game404/blackhole --word hello

效果图

电脑 compute 虎尾 tiger 熊爪 bear 像素风 pixel 楷体像素风 game404

参考项目

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.