Automatic Pattern Generation

agolangf · · 612 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hi Folks</p> <p>For a project of mine I wanted a service which automatically generates a unique and identifiable pattern based on an initial input seed. I decided to take the opportunity and use it to learn Go.</p> <p>I ended up using the <a href="https://github.com/llgcode/draw2d">draw2d</a> library which works quite well.</p> <p>Here&#39;s a small writeup: <a href="http://gabetaubman.com/projects/patterns/">http://gabetaubman.com/projects/patterns/</a></p> <p>Hope you find it interesting!</p> <hr/>**评论:**<br/><br/>FogleMonster: <pre><p>Nice! Just curious, did you consider using cairo?</p> <p><a href="https://github.com/ungerik/go-cairo" rel="nofollow">https://github.com/ungerik/go-cairo</a></p></pre>SuperGabe: <pre><p>Absolutely! In fact, it was my initial choice, as it&#39;s what I&#39;m more familiar with.</p> <p>The major deciding factor was ease of installation (funnily enough). I do development on a mac, and getting Cairo installed there has presented problems in the past (my installation of Mac Ports seems to be busted). So, I went with a library that was easier to install on both my mac and the linux machine I use.</p></pre>FogleMonster: <pre><p>As a fellow Mac user, let me suggest that you use <a href="http://brew.sh/" rel="nofollow">Homebrew</a> and not MacPorts!</p> <pre><code>brew install cairo </code></pre> <p>Then I had to do this to install go-cairo...</p> <pre><code>export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig go get github.com/ungerik/go-cairo </code></pre></pre>SuperGabe: <pre><p>I&#39;m a big fan of Homebrew :). Unfortunately it suffers the same permission problems as Mac Ports. (As far as I can tell permissions of various directories keep getting changed to ones that it doesn&#39;t like.)</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

612 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传