终端分形查看器

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第三方库


热门话题
使用php调用java web服务时无法获取输出   java Netbeans:安装IMlet时出错。。。。仿真器错误   初始化期间Eclipse Juno SR 2中的java堆栈溢出   java在3d中寻找两个任意立方体的交集   代码中显示java“org.openqa.selenium.WebDriverException”错误   java使用AtomicInteger作为可变整数的替代品是一种好的做法吗?   当以编程方式设置背景颜色时,java版面在更新后会自动复制   java将字符串拆分为一个带有数字数据的字符串和另一个带有非数字数据的字符串   带有SSL协议的java AsyncHttpClient   C++服务器HTTN到java NtoHS客户端转换   java内存分配是基于引用类还是实例类?   java使用ProjectLombok安全吗?   grails“java版本”在命令提示符下不工作   java无法使用axis2实例化类型ADBDataSource   在Play Framework 2中进行多文件上传的java示例   java如何将二进制补码字符串转换为负十进制数?   windows 7在Java中获取不正确的操作系统名称   java如何禁用p:commandButton的enter键?   java如何从main方法加载servlet   java如何从imageView获取二进制位图