# pil_example_gradient_font **Repository Path**: x_5/pil_example_gradient_font ## Basic Information - **Project Name**: pil_example_gradient_font - **Description**: PIL:渐变文字 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-06-27 - **Last Updated**: 2023-06-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PIL:文字渐变效果示例 ## 环境: python3.9 ## 安装依赖: pip install -r requirements.txt ## 运行: ``` python main.py ``` ## 说明: 本示例提供了2种效果给大家参考。 修改代码中的"渐变颜色效果图片"的路径,2选1即可。 ``` # 渐变颜色效果图片 font_gradient_file_path = "template/font_gradient_1.jpg" font_gradient_file_path = "template/font_gradient_2.jpg" ``` 其他的渐变效果,可以参考`template`文件夹里面的文件,来自行设计,原理都是相通的。