Hello Modulo
Nat Sarkissian · 2023
My intention with this piece was to create something that looked simultaneously human and computerized. The human element is the hand drawn style. The movement of the strokes, the variance of the density of the simulated particles of color, and inaccuracy of the grid are a few of the things I worked with to make this feel as though a human drew it. The computerized element is the complexity and intricacy of the patterns. As each grid cell is created, its color is determined by taking the index of the cell, which has various definitions in this code, modulo some other number. Modulo is not a difficult operator to understand (it simply returns the remainder of a division), but it is not typically taught amongst the four basic operators, addition, subtraction, multiplication, and division. Because of that, it's typically not intuitive. As I developed this work, it felt oddly like building a relationship with modulo. It kept surprising me with complex and unpredictable patterns. I introduced it to more familiar concepts like noise, and trigonometric functions, and continued to see new patterns. My hope is that you will see a little bit of modulo's personality in this work, and consider getting to know this awkward fifth wheel of the arithmetic operators. Nat Sarkissian
仕組み
sketch.js advances ribbon strips along a noise-steered direction field (angNs = noise(...)), colors them by modulo arithmetic, and renders each SketchyQuad as a wobbling pen scattering dots in a hand-plotted hatch style.
核は「ノイズで操舵される方向場に沿ってリボン状の帯を走らせる」フローフィールドです。sketch.js は angNs = noise(…) で得た角度に従って各ステップの進行方向を回転させ、帯(ストリップ)を流れに沿って伸ばします。ノイズが滑らかな方向場を与えるため、画面に流動する筋目が生まれます。 配色はモジュロ演算で決まります。(_i·nShapes+_j) % modAmt のように番号を法で折り返して色を割り当てるため、周期的な色のリズムが帯に乗ります。各 SketchyQuad は手描き風に揺れ、点を散らしてプロッタのハッチのような粗い陰影を作ります。法の値・ノイズのスケール・帯の本数・配色がトークンごとに変わり、規則的な縞から有機的にうねる束まで、見え方の幅が広がります。
パレット
#f0f8ff#faebd7#00ffff#7fffd4#f0ffff#f5f5dc#ffe4c4#000000#ffebcd#0000ff#8a2be2#a52a2a#deb887#5f9ea0#7fff00#d2691e#ff7f50#6495ed#fff8dc#dc143c#00008b#008b8b#b8860b#a9a9a9#006400#bdb76b#8b008b#556b2f#ff8c00#9932cc#8b0000#e9967a +138 more #dfd8ce#e7bd88#e9a565#e97c67#bcae86#cdb787#deccbb#b6ae9a アルゴリズム
- Flow Field / Vector Field 主 · 分類: LLM
- Plotter-style Hatching · 分類: LLM
- Perlin / Simplex Noise · 分類: LLM
詳細
出典
- IPFS 1p.infura-ipfs.io ↗
- Source verse.works ↗
関連作品 (共有するアルゴリズムによる)
最終更新 2026-07-16