“I strongly recommend reading not only the chapter, but the whole book.”
The Nature of Code
用 Processing 模拟物理、群体、遗传算法与神经网络
Daniel Shiffman 用 Processing(后来也有 p5.js 版本)写成的创意编程书,从向量、力和运动讲起,逐步到粒子系统、群体行为、元胞自动机、分形、遗传算法和神经网络。每章配有可运行的示例代码,风格轻松、重直觉。和一般的图形学或算法书相比,更偏向生成艺术和对自然现象的模拟。
HN 上的人把它当作创意编程和生成艺术的首选入门,称赞它用物理和数学让代码更“自然”,示例清楚,还免费可读;也有人称它是很好的编程入门书。
想用代码做模拟与生成艺术的初学者
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1从向量和力的章节开始,边读边在 Processing 或 p5.js 里跑代码
- 2每章改改参数、自己做个小变体
- 3对群体行为、元胞自动机感兴趣的可先跳到相应章节
- 4神经网络部分作为入门了解即可
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“The Nature of Code is one of my favorites free reads The Nature of Code”
“For people interested in algorithmic art, I can heavily recommend the nature of code”
“I can't recommend Nature of Code enough. It's free, you can read it online and it will give you a good start”
“The Nature of Code [1] has some nice examples on how to calculate steering/acceleration behavior for targeting.”
“Highly worth paying for, Shiffman rocks!”
看全部 20 条 →
“An awesome book; I've now started reading from the beginning of the book:)”
“Here is a truly wonderful book that uses Processing:”
“Read "The Nature of Code" [1], by Dan Shiffman (the same Dan in the Hello video linked above), and you'll instantly understand the difference between Processing (and P5.js) and other languages/frameworks.”
“"The Nature of Code" by Daniel Shiffman. Excellent book on simulation of the natural, chaotic world in the Processing programming language.”
“"The Nature of Code" is a book I've heard repeated is pretty good.”
“I'm pretty new to CA, so I found this really useful in giving some necessary background to the algorithm and what a "rule" is”
“Daniel Shiffman's excellent book "The Nature of Code"[0] uses Processing (now ported to Processing.js) to teach all kinds of practical introductory tools”
“he also wrote a book called "the nature of code" which is alse awesome [1]”
“Here's a link to Daniel Shiffman's excellent write up and code examples illustrating the phenomena:”
“I found the following book insightful, in understanding some of the concepts involved in simulating physics and "life-like" behaviors.”
“The Nature of Code book is a great resource.”
“"The Nature of Code" by Daniel Shiffman is a wonderful book that counts Vehicles as one of its inspirations.”
“You could draw an inspiration from Daniel Shifman's book "Nature of code" - see chapters 2 and 3 for instance.”
“I like to recommend The Nature of Code”