程序生成的鱼类图谱
fishdraw,Lingdong Huang,2021 年

正在布展…
它是怎么做的
- 第 1 步随机参数决定体型曲线、鳍的数量与位置、眼睛和嘴的形状。
- 第 2 步鳞片沿体表网格逐行铺设,并按光照方向画排线阴影。
- 第 3 步所有形状最终都转为折线并做遮挡裁剪。
- 第 4 步输出 SVG,可用于绘图仪。
复刻配方
一段技术配方,可以直接交给 AI 编程助手,也可以自己照着写。想指定技术栈、位置和性能预算,就把它加入实现方案。
Define a fish body as two spline curves (top and bottom profile) driven by random parameters for length, depth and taper. Generate fins as fans of polylines with rays, place an eye and mouth at proportional positions, then tile scale arcs along a curvilinear grid inside the body. Shade by adding hatch lines whose density depends on distance from the belly. Implement polygon clipping so nearer parts hide strokes behind them, and export everything as plain polylines in SVG.
档案
性能开销
轻重
视觉强度
安静强烈
实现难度
一个下午数周打磨
尺度为策展判断(1 到 5),用于比较和推荐。
核实记录:Live page loads (HTTP 200, inline HTML with floralwhite body); gh api: MIT, created 2021-08-11.


