Skip to main content

终端分形查看器

项目描述

https://github.com/Tenchi2xh/Almonds/raw/master/misc/logo/logo.png



https://img.shields.io/pypi/v/almonds.svg https://img.shields.io/codacy/3b8d442e099546ec838aa44a2f9a5d23.svg https://img.shields.io/travis/Tenchi2xh/Almonds.svg https://img.shields.io/badge/tag-1.25b-blue.svg

特征

  • 完全成熟的 Mandelbrot 查看器,在您的终端中

  • 现在与本机 Windows 控制台兼容!

  • 朱莉娅集

  • 自制终端UI

  • 带抖动的 8 色 ANSI 模式

  • 256色模式

  • 使用多处理并行化

  • 多个调色板,自适应模式

  • 保存和加载功能

  • 独立提供,源代码兼容 Python 2 和 3

  • 舒适的终端带来无限乐趣

跑步

使用画中画

赶紧跑:

$ 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

(对于 Cygwin,推荐使用minttybabun

在 Windows 上,从Unofficial Windows Binaries for Python Extension Packages( 基于 PDCurses的 Windows 的curses实现)下载curses模块,然后运行:

> 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

控件

钥匙

行动

, , ,

四处走走

, _

调整移动速度

输入手动坐标

, U _

缩放/取消缩放

_ _

增加/减少迭代次数

Ĵ

进入/离开 Julia 集

下一个调色板

D

颜色模式(256色/8色ANSI/8色ASCII)

R

反转调色板顺序

一个

调色板模式(正常/自适应)

Z

启动调色板循环动画

H

在高分辨率 PNG 文件中捕获当前视图

X

显示/隐藏十字准线

切换 UI 主题(暗/亮)

小号

保存所有当前设置并查看

大号

加载以前的保存

ESC , CTRL``+``C

出口

截图和渲染

在GitHub 项目页面上查看

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

almonds-1.25b.tar.gz (21.4 kB 查看哈希

已上传 source