kodjo.ai
👤 Joined on 28 April 2026
Followers
Following
Total Posts
@kodjodotai.bsky.social@kodjodotai.bsky.social → @kodjo.aiIt's a bit clunky and it delays rendering by 1 frame, but it works reasonably well for what I'm doing. Here's the code, if anyone's curious: gist.github.com/joshwcomeau/...
Show PostI thought at first I could do this with `image-rendering: pixelated;`, but at least in Chrome, SVGs are really stubborn. They really want to remain as vectors! So instead, I'm using XMLSerializer to turn the SVG node into a string, and then painting it into a 2D <canvas>. 😂
Show PostOf course, the fact that SVGs are scalable is usually their biggest strength! But in this particular case, I'm going for a pixel-art aesthetic. So why use SVGs at all? I want to procedurally generate dozens of different variations, so I can't just use static jpegs. SVG syntax is perfect for this!
Show PostI'm doing something absolutely ridiculous. 😂 I created a `RasterizedSvg` component that will render an SVG as though it was a raster image, letting us see the pixels if we scale it up. Left: original SVG Right: rasterized SVG
Show PostTIL the /insights command on #ClaudeCode lets the agent inspect your session logs, detect when Claude went wrong, suggest fixes in your harness (CLAUDE.md, skills, hooks) and inform you of features you could have used to improve your workflow.
Show Post