终端分形查看器

almonds的Python项目详细描述


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



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

功能

  • 成熟的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

(对于cygwin,minttybabun推荐)

在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

控件

KeysAction
^{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

屏幕截图和渲染

GitHub Project Page

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java将变量从一个类发送到另一个类   使用Java Kubernetes客户端Api部署pod   sql如何从oracle检索图像并在java框架中显示   java更改Clover检测类的位置   java安卓位置。getAccuracy()返回1   运行时。不支持Java ME 8上的exec()。还有别的选择吗?   bdd在Java中运行Cucumber时修改CucumberOptions标记   在java中将方法更改为运行时异常   构造函数类中的Java NullPointerException   java SetResizeable(false)不会阻止双击后的帧还原   java智能卡终端移除:SCARD_E_无服务卡例外   Java正则表达式和组   爪哇骑士巡回赛   端口8443上通过ssl的java Spring安全登录在使用http协议的端口8080上无法识别   java如何确定读取文件的哪一行特定行