
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
A command-line tool to generate colorful ASCII art with gradients and animations.
ASCII Gradient Art is a powerful command-line tool that generates beautiful ASCII art with customizable gradient colors and animations. Transform any text into stunning visual art with various fonts, color themes, and rendering modes.
pip install ascii-gradient-art
git clone https://github.com/crazyZSShuo/ascii-gradient-art.git
cd ascii-gradient-art
pip install -e .
ascii-gradient-art --text "Hello World"
Custom font and color theme:
ascii-gradient-art --text "AWESOME" --font slant --color-theme fire
Vertical gradient with fill mode:
ascii-gradient-art --text "COOL" --gradient-direction vertical --render-mode fill
Animated ASCII art:
ascii-gradient-art --text "DANCE" --animation-frames 20 --animation-delay 0.1
Save to file:
ascii-gradient-art --text "SAVE ME" --output-file output.txt
Option | Description | Default | Choices |
---|---|---|---|
--text | Text to convert to ASCII art | Required | - |
--font | Font style for ASCII art | standard | Any pyfiglet font |
--color-theme | Gradient color theme | rainbow | See Color Themes |
--gradient-direction | Direction of the color gradient | horizontal | horizontal , vertical , diagonal_up , diagonal_down |
--render-mode | Rendering mode | outline | outline , fill |
--animation-frames | Number of animation frames | 1 | Any positive integer |
--animation-delay | Delay between frames (seconds) | 0.1 | Any positive float |
--output-file | Output file path | None | Any valid file path |
The tool includes 14 beautiful built-in color themes:
ascii_gradient_art/
├── ascii_gradient_art.py # Main entry point
├── main.py # Alternative entry point
├── setup.py # Package configuration
├── core/
│ ├── __init__.py
│ ├── generator.py # ASCII art generation and processing
│ └── color_utils.py # Color manipulation utilities
├── themes/
│ ├── __init__.py
│ └── default_themes.py # Built-in color themes
└── utils/
├── __init__.py
└── cli_parser.py # Command-line argument parsing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
ASCII 渐变艺术字是一个强大的命令行工具,可以生成带有自定义渐变色彩和动画效果的精美 ASCII 艺术字。将任何文本转换为令人惊叹的视觉艺术,支持多种字体、色彩主题和渲染模式。
pip install ascii-gradient-art
git clone https://github.com/crazyZSShuo/ascii-gradient-art.git
cd ascii-gradient-art
pip install -e .
ascii-gradient-art --text "Hello World"
自定义字体和色彩主题:
ascii-gradient-art --text "AWESOME" --font slant --color-theme fire
垂直渐变与填充模式:
ascii-gradient-art --text "COOL" --gradient-direction vertical --render-mode fill
动画 ASCII 艺术字:
ascii-gradient-art --text "DANCE" --animation-frames 20 --animation-delay 0.1
保存到文件:
ascii-gradient-art --text "SAVE ME" --output-file output.txt
选项 | 描述 | 默认值 | 可选值 |
---|---|---|---|
--text | 要转换为 ASCII 艺术字的文本 | 必需 | - |
--font | ASCII 艺术字的字体样式 | standard | 任何 pyfiglet 字体 |
--color-theme | 渐变色彩主题 | rainbow | 参见 色彩主题 |
--gradient-direction | 色彩渐变的方向 | horizontal | horizontal , vertical , diagonal_up , diagonal_down |
--render-mode | 渲染模式 | outline | outline , fill |
--animation-frames | 动画帧数 | 1 | 任何正整数 |
--animation-delay | 帧间延迟(秒) | 0.1 | 任何正浮点数 |
--output-file | 输出文件路径 | 无 | 任何有效文件路径 |
工具包含 14 种精美的内置色彩主题:
ascii_gradient_art/
├── ascii_gradient_art.py # 主入口点
├── main.py # 备用入口点
├── setup.py # 包配置
├── core/
│ ├── __init__.py
│ ├── generator.py # ASCII 艺术字生成和处理
│ └── color_utils.py # 色彩处理工具
├── themes/
│ ├── __init__.py
│ └── default_themes.py # 内置色彩主题
└── utils/
├── __init__.py
└── cli_parser.py # 命令行参数解析
欢迎贡献!请随时提交 Pull Request。对于重大更改,请先开启 issue 讨论您想要更改的内容。
本项目采用 MIT 许可证 - 详情请参见 LICENSE 文件。
以下是一些使用不同主题和设置的示例输出:
# 彩虹主题水平渐变
ascii-gradient-art --text "RAINBOW" --color-theme rainbow
# 火焰主题垂直渐变填充模式
ascii-gradient-art --text "FIRE" --color-theme fire --gradient-direction vertical --render-mode fill
# 霓虹主题对角渐变动画
ascii-gradient-art --text "NEON" --color-theme neon --gradient-direction diagonal_up --animation-frames 15
常见问题:
获取可用字体列表:
import pyfiglet
print(pyfiglet.FigletFont.getFonts())
FAQs
A command-line tool to generate colorful ASCII art with gradients and animations.
We found that ascii-gradient-art demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.