<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Soheil Fouladvandi</title>
    <description>The latest articles on DEV Community by Soheil Fouladvandi (@gafelson).</description>
    <link>https://dev.to/gafelson</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1410731%2Fa2b94574-912b-415a-ae3a-c0793880b853.jpg</url>
      <title>DEV Community: Soheil Fouladvandi</title>
      <link>https://dev.to/gafelson</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gafelson"/>
    <language>en</language>
    <item>
      <title>I built picotile — type a name, get a unique dithered dot avatar (deterministic, zero dependencies)</title>
      <dc:creator>Soheil Fouladvandi</dc:creator>
      <pubDate>Wed, 05 Aug 2026 06:55:15 +0000</pubDate>
      <link>https://dev.to/gafelson/i-built-picotile-type-a-name-get-a-unique-dithered-dot-avatar-deterministic-zero-dependencies-id9</link>
      <guid>https://dev.to/gafelson/i-built-picotile-type-a-name-get-a-unique-dithered-dot-avatar-deterministic-zero-dependencies-id9</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fey6k858kjpypgc5i8jvw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fey6k858kjpypgc5i8jvw.png" alt="live preview" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Live demo: &lt;a href="//gafelson.github.io/picotile/"&gt;Live demo&lt;/a&gt;&lt;br&gt;
Github: &lt;a href="https://github.com/GafelSon/picotile" rel="noopener noreferrer"&gt;Code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I kept noticing that most identicon libraries produce kind of forgettable &lt;strong&gt;avatars&lt;/strong&gt;, so I made one with a look I actually like. picotile takes a name and a seed and returns a two-tone dithered dot tile. The same name always produces the exact same avatar, so you can generate user avatars on the fly without storing any images.&lt;/p&gt;

&lt;p&gt;The pattern comes from ordered (Bayer) dithering — dense areas fill into solid shapes, sparse areas fade out, with a clean half-tone band in between. There are four shapes it can take: linear, radial, sweep, and ripple.&lt;/p&gt;

&lt;p&gt;Some bits I'm happy with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Zero dependencies, works in Node or the browser, TypeScript&lt;/li&gt;
&lt;li&gt;Output is just an SVG string, so it works server-side or at build time&lt;/li&gt;
&lt;li&gt;There's a CLI: &lt;code&gt;npx picotile "Ada Lovelace"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;You can pull the raw dot coordinates and render them however you want&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo8693yvi0c2smqbibnrd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo8693yvi0c2smqbibnrd.png" alt="github readme" width="756" height="493"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's one of my first published npm packages, so I'd really appreciate honest feedback — on the code, the docs, or just whether the avatars look good to you.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>npm</category>
      <category>avatar</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
