终端分形查看器
almonds的Python项目详细描述
功能
- 成熟的Mandelbrot查看器,在您的终端中
- 现在与本机Windows控制台兼容!
- 朱莉娅集合
- 自制终端用户界面
- 8色ANSI模式,带抖动
- 256色模式
- 使用multiprocessing
- 多个选项板,自适应模式
- 保存和加载功能
- 提供独立的、与Python2&3兼容的源代码
- 从您的终端舒适性中获得无限乐趣
运行
使用PIP
只需运行:
$ pip install almonds $ almonds
在非Cygwin Windows上,您仍然需要安装非官方的 curses模块(请参阅下面的“来自源代码”)
来源
克隆回购协议:
$ git clone https://github.com/Tenchi2xh/Almonds.git $ cd Almonds
在OS X、Linux和Cygwin上:
$ pip install Pillow $ python -m almonds.main
在windows上,从Unofficial Windows Binaries for Python Extension Packages(a)下载curses模块 curses基于 PDCurses),然后运行:
> pip install curses‑2.2‑cp27‑none‑win32.whl > pip install Pillow > python -m almonds.main
字体Envy Code R 是否建议高度如果您的终端模拟器支持它,请尝试 减小行距,使方框绘图字符接触什么时候? 使用另一种字体,分形的外观可能会被压扁 因为字符的宽高比不同;请尝试 使用参数--ratio调整它(请参见下面的“用法”)
使用pypy将使高分辨率捕获更快,但是终端 导航慢一点。
用法
██ ██ ██████ ██ .d8b. db db ██████████ d8' `8b 88 .88b d88. .d88b. .888b .d8888 .d8888 ██ ██████████████ 88ooo88 88 88 88 88 8P Y8 88 88 88 88 `8bo. ████████████████████ 88 88 88 88 88 88 8b d8 88 88 88 8D `Y8b ██ ██████████████ YP YP YP YP YP YP `Y88P' VP VP Y888D' `8888Y ██████████ ██ ██████ ██ T e r m i n a l f r a c t a l v i e w e r ██ usage: almonds [-h] [-p N] [-r RATIO | -d W H] [-z] [save] version 1.20b positional arguments: save path of a save to load optional arguments: -h, --help show this help message and exit -p N, --processes N number of concurrent processes -r RATIO, --char-ratio RATIO width to height ratio of the terminal characters -d W H, --dimensions W H width and height of the terminal characters -z, --qwertz swap the "z" and "y" keys
控件
Keys | Action |
---|---|
^{tt6}$, ^{tt7}$, ^{tt8}$, ^{tt9}$ | Move around |
^{tt10}$, ^{tt11}$ | Adjust move speed |
^{tt12}$ | Input manual coordinates |
^{tt13}$, ^{tt14}$ | Zoom / Un-zoom |
^{tt15}$, ^{tt16}$ | Increase / Decrase number of iterations |
^{tt17}$ | Enter / Leave Julia set |
^{tt18}$ | Next palette |
^{tt19}$ | Color mode (256 colors / 8 colors ANSI / 8 colors ASCII) |
^{tt20}$ | Reverse palette order |
^{tt21}$ | Palette mode (Normal / Adaptive) |
^{tt22}$ | Launch palette cycling animation |
^{tt23}$ | Capture current view in a high-resolution PNG file |
^{tt24}$ | Show / Hide crosshairs |
^{tt25}$ | Toggle UI theme (Dark / Light) |
^{tt26}$ | Save all current settings and view |
^{tt27}$ | Load a previous save |
^{tt28}$, ^{tt29}$ | Exit |