The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
invzhi

使用 Go 编写的 排序可视化 GIF 生成工具

  •  
  •   invzhi ·
    invzhi · Dec 8, 2017 · 2550 views
    This topic created in 3105 days ago, the information mentioned may be changed or developed.

    之前在 Hacker News 上看到很有趣的排序可视化,于是用 Go 写了一个生成 GIF 的工具。

    https://github.com/invzhi/sorting-visualization

    功能如下:

    • 支持排序:选择,插入,排序,归并,快速,冒泡,基数;也可以一次性生成所有排序
    • 指定输出 GIF 的宽高
    • 指定 GIF 每帧的时延

    以下是归并排序生成的 GIF 图:

    归并排序

    Supplement 1  ·  Dec 8, 2017
    README 中有几个参考链接,还有人做了排序的声音,很魔性 :D
    5 replies    2017-12-09 18:05:12 +08:00
    yonka
        1
    yonka  
       Dec 8, 2017
    不错哦
    xrlin
        2
    xrlin  
       Dec 8, 2017
    有趣
    lepig
        3
    lepig  
       Dec 8, 2017
    有意思
    Kisesy
        4
    Kisesy  
       Dec 9, 2017
    shell 排序的截图位置不对吧, 6 张图就排完了..
    invzhi
        5
    invzhi  
    OP
       Dec 9, 2017
    @Kisesy 因为 shell 排序过程截图太多了,GIF 文件会很大,就做了取舍
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5412 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 08:29 · PVG 16:29 · LAX 01:29 · JFK 04:29
    ♥ Do have faith in what you're doing.