GithubHelp home page GithubHelp logo

dannytking / handwriting_cn_wc Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.84 MB

基于**书法艺术字型的云词小应用

License: GNU General Public License v3.0

Python 100.00%
wordcloud python3 handwriting

handwriting_cn_wc's Introduction

licence

handwriting_cn_wc

基于**书法艺术字型的云词小应用

Overview

家 生

Quickstart

  1. 准备书法字图片, 256x256, 白底黑字
    替换 /mask/shape_jia.png|shape_cn.jpeg 遮罩图片
  2. 准备配色样本图片, 256x256, 白底
    替换 /mask/color_jia.jpeg|color_cn.jpeg 调色板图片
  3. 安装项目依赖
pip install -r requirement.txt
  1. 运行项目脚本
# python3x
python handw_cn.py # 生成汉字云词
python handw_jia.py # 生成图标云词
  1. 查看输出云词图片文件目录:/out

Frequently asked questions

如何修改云词中汉字内容?
编辑 /conf/char_cn.json 按照json数组格式添加每一个汉字

如何修改云词中字体效果?

  1. 准备好字体文件test_diy.ttf|otf,添加到/font目录下
  2. 修改脚本文件,更换gen_words中最后一个参数值
# handw_cn.py 
gen_words('char_cn.json',
              'shape_cn.jpeg',
              'color_cn.jpeg',
              'test_diy.ttf')

# handw_jia.py 
gen_words('char_icons.json', 
            'shape_jia.png', 
            'color_jia.jpeg', 
            'test_diy.ttf')

Future

做一张家庭,班级,朋友,团队的笑脸书法云词^_^!

Special thanks

Additional Resources

handwriting_cn_wc's People

Contributors

dannytking avatar

Stargazers

 avatar

Watchers

 avatar  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.