TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Nannou – An open-source creative-coding framework for Rust

258 点作者 notmysql_大约 2 年前

17 条评论

d3m0t3p大约 2 年前
I would suggest checking their github repo[1] and seeing the examples from the book “nature of code” they are astonishing with a shitload of them ! Same with “generative design”<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;nannou-org&#x2F;nannou&#x2F;tree&#x2F;master&#x2F;nature_of_code">https:&#x2F;&#x2F;github.com&#x2F;nannou-org&#x2F;nannou&#x2F;tree&#x2F;master&#x2F;nature_of_c...</a>
chaosprint大约 2 年前
For those who are interested in creative coding and Rust, especially the sound&#x2F;audio&#x2F;music related work, you can have a look on Glicol:<p><a href="https:&#x2F;&#x2F;glicol.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;glicol.org&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;chaosprint&#x2F;glicol">https:&#x2F;&#x2F;github.com&#x2F;chaosprint&#x2F;glicol</a><p>A music live coding language and a DSP library written in Rust.
评论 #35052106 未加载
sebosp大约 2 年前
Nannou talks about control of lasers, what would be a way to learn and get a cheap version of a laser beam I could use at home? Or maybe can I use that to control some light projections? I&#x27;m not interested in a full projector aimed at a while wall but was more wondering if I could somehow project some satellite movement on my living room walls and ceiling. I remember in Amsterdam there are some &quot;immersive&quot; light shows in Micropia where you see bacteria floating around and in the floor. Also shameless plug, I bridged Alacritty with Nannou so that one can use nannou primitives as alacritty &quot;background&quot; with animations <a href="https:&#x2F;&#x2F;github.com&#x2F;sebosp&#x2F;chartacritty">https:&#x2F;&#x2F;github.com&#x2F;sebosp&#x2F;chartacritty</a>
评论 #35030880 未加载
iandanforth大约 2 年前
Rust is one of the more frustrating languages to dabble in. Usability is explicitly not a top priority. I can&#x27;t imagine suggesting a rust based project to someone who wasn&#x27;t already a fairly proficient coder.
评论 #35029995 未加载
评论 #35036281 未加载
评论 #35030175 未加载
评论 #35031839 未加载
xmcqdpt2大约 2 年前
I was expecting it to be like P5 but worse (why would you use Rust for that kind of coding?? do I actually care about memory safety in my sketches?) Shockingly the code looks totally reasonable! Im very impressed.<p>I guess there is a lot of copy happening under the hood (cf the source for Draw) but the result is a very straightforward syntax. I might give it a try instead of going back to P5.
评论 #35029796 未加载
评论 #35029417 未加载
评论 #35036293 未加载
评论 #35029931 未加载
joenot443大约 2 年前
The example code for drawing a circle felt warmly reminiscent of SwiftUI.<p>draw.ellipse() .color(STEELBLUE) .w(300.0) .h(200.0) .x_y(200.0, -100.0);<p>This seems promising! The creative coding folks I know mostly use WebGL which is obviously a way, way less user friendly syntax, though the tooling itself is much simpler and available. I’ll also note that the majority of the “best” creative coders I’ve met (biggest online following, largest shows) were not SWEs and generally didn’t code much outside of their preferred creative environment.<p>All that to say that the other commenters are right, and that what is trivial to us (build and run a rust project) is a multi day affair for the technical non-programmer.<p>I wonder if the author would consider shipping a desktop app with a preview window, simple text editor, and play button. All the pieces are obviously there, it’s just be a bit of a pain in the ass supporting three platforms and certainly less fun that working on the library itself :)
chungus大约 2 年前
This is a really cool project, named after a beautiful Aphex Twin song[1] (mentioned in their about: <a href="https:&#x2F;&#x2F;www.guide.nannou.cc&#x2F;why_nannou.html" rel="nofollow">https:&#x2F;&#x2F;www.guide.nannou.cc&#x2F;why_nannou.html</a>)<p>[1] <a href="https:&#x2F;&#x2F;youtube.com&#x2F;watch?v=A-Pkx37kYf4">https:&#x2F;&#x2F;youtube.com&#x2F;watch?v=A-Pkx37kYf4</a>
Fraterkes大约 2 年前
This seems cool! Would be neat to have some kind of feature&#x2F;performance comparison with processing, which I&#x27;d guess is the introduction to creative coding for a lot of people.
pietroppeter大约 2 年前
Surprised to see this kind of project in Rust but it looks interesting.<p>Cannot resist plugging a Nim wrapper for p5js (although it’s a bit early stage), in case other are interested in doing p5&#x2F;processing stuff in a niche but fun (and easy to pick up) language: <a href="https:&#x2F;&#x2F;github.com&#x2F;pietroppeter&#x2F;p5nim">https:&#x2F;&#x2F;github.com&#x2F;pietroppeter&#x2F;p5nim</a>
评论 #35029910 未加载
dang大约 2 年前
Related:<p><i>Nannou – A Creative Coding Framework for Rust</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25343356" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25343356</a> - Dec 2020 (25 comments)<p><i>Nannou: Creative Coding Toolkit for Rust</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20147764" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=20147764</a> - June 2019 (30 comments)
_def大约 2 年前
Ooh that could be great way to learn rust for me. Just got back into processing, with the goal of listening to midi to change visuals.
acodingcow大约 2 年前
For those who are starting to learn creative coding from p5js&#x2F;Processing like me, this framework can appear quite challenging. P5js and Processing are designed to smooth the learning curve of programming for designers and artists without a CS background. Nannou looks more like it&#x27;s designed for those who already have experience in creative coding but are looking to achieve higher performance with their sketches.<p>It&#x27;s worth taking a look at OPENRNDR, which is a framework based on Kotlin. Personally, I think it achieves a good balance between performance and accessibility.<p>OPENRNDR: <a href="https:&#x2F;&#x2F;openrndr.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;openrndr.org&#x2F;</a>
jll29大约 2 年前
I wonder if creative people can be bothered to learn Rust, or perhaps an easier path to adoption could be a simple DSL.
评论 #35028467 未加载
评论 #35028401 未加载
评论 #35028524 未加载
评论 #35028182 未加载
评论 #35028417 未加载
评论 #35030781 未加载
评论 #35028644 未加载
habitue大约 2 年前
I interviewed an artist who uses nannou to make art daily, back in 2021:<p><a href="https:&#x2F;&#x2F;blog.abor.dev&#x2F;p&#x2F;making-generative-art-with-rust" rel="nofollow">https:&#x2F;&#x2F;blog.abor.dev&#x2F;p&#x2F;making-generative-art-with-rust</a>
aimor大约 2 年前
I was searching for a Rust tool like this not too long ago, very excited to see this and try it out!
brunoqc大约 2 年前
I checked the website and the docs but I still have no idea what this is about.
评论 #35032881 未加载
throw10920大约 2 年前
The most important feature of a tool meant to support creativity is <i>interactivity</i>. Last time I checked, Rust didn&#x27;t have a REPL, didn&#x27;t support live-patching, and didn&#x27;t have fast compile times - all features critical for interactivity. Has something changed since then?
评论 #35032325 未加载
评论 #35030572 未加载