halftone-art
БесплатноБез исполняемых скриптовНе проверенBuild halftone dot art for web: CSS, canvas, SVG, React.
от sakib-dalal272 установки в других каталогахОб этом скилле
Halftone Art
Halftone is tonal reproduction by dot area: a fixed grid of ink dots whose diameter — never their colour or opacity — encodes lightness. This skill ships four production techniques (CSS filter, CSS mask, SVG pattern, canvas engine), React bindings, die-cut cutouts on transparent stock, three runnable pages, and the print-design rules that decide whether the output reads as ink on paper or as a Photoshop filter.
Measured: 1440×900 hero renders in 13 ms (mono) / 36 ms (CMYK, 4 plates). Zero dependencies, no build step required.
When to Use
- Building halftone / dot-screen visuals for web: hero images, poster sections, editorial plates, album art, product cards, zine-style landing pages.
- Simulating risograph, screenprint, newsprint, pop-art (Lichtenstein), or process-colour proof.
- Masking display type into a dot screen.
- Replacing a flat photo with a printed-looking treatment that still carries the subject.
- Creating dot textures that feel like paper, not like a UI grid.
- Cutting a halftone subject out onto a transparent background — stickers, patches, merch drops, decals, collage elements that must sit on any surface.
Don't use for — photo editing where you can send a real file to Photoshop; dithering/
1-bit pixel art (different algorithm: error diffusion, not AM screening); film-grain or noise
overlays (use an feTurbulence filter); or a quick background gradient (plain CSS wins).
The One Idea
tone t ∈ [0,1] → dot area = t × cell² → radius = √(area/π)
Fixed grid spacing, varying dot diameter, one ink per plate, plates overprinted with multiply.
Everything else — angles, gain, curves — is refinement on top of that line. If a technique cannot
vary the dot's area per cell, it is a texture, not a halftone; label it as such and use it only
decoratively.
Choose the Technique
| need | technique | why |
|---|---|---|
| a photo as halftone, tone-accurate, animatable, exportable | canvas engine (templates/halftone-core.js) |
real separations, per-plate angles, 13 ms |
| photo → dots with no JS at all | CSS filter (§B in techniques.md) | works, but needs per-image calibration |
| dot texture / gradient field / tint behind text | CSS mask (§C) | sharp at any DPR, 6 lines of CSS |
| logo-scale detail, print, infinite zoom, rolling screen | SVG pattern (§D) | vector, crisp, patternTransform animates |
| display type cut out of dots | CSS mask on glyphs (§E) | 4 lines; see the no-background rule |
| React app | templates/Halftone.tsx |
typed, ResizeObserver, rAF-coalesced |
| two-plate riso look | canvas mode: 'duotone' + misregister |
real second separation, not a copy |
| die-cut sticker / transparent cut-out | canvas cutout: true (+ cutoutOutline) |
clips to the subject, keeps alpha |
| cut-out with no pre-cut asset | cutoutMode: 'key' |
floods the backdrop from the corners — draft only |
Full code, maths and verified parameters for every row: references/techniques.md.
Deeper design rules: references/design-language.md.
Quick Reference — canvas engine options
renderHalftone(canvas, image, {
cell: 8, // CSS px per dot cell — the master control (see dot-scale table)
angle: 45, // screen angle; 45 mono, 27/62 duo, 15/75/0/45 CMYK
shape: 'round', // round | square | diamond | ellipse | line | cross | ring
ink: '#171717', paper: '#f2eee2',
gain: 0.95, // dot gain: 0.8 light · 1 neutral · 1.15 ink spread
contrast: 1.15, gamma: 1, brightness: 0, levels: 0, // tone transfer
autoLevels: true, // stretch the source's real tonal range (do this for scans)
mode: 'mono', // mono | duotone | cmyk
inks: ['#0f4bd8', '#ff5f8f'], plateAngles: [27, 62],
plateCurves: ['full', 'midtone'], // full | shadows | midtone | highlights | liner
misregister: 2, // px offset between plates
grain: 0.4, // per-dot coverage jitter — kills the "generated" sheen
focal: [0.5, 0.2], zoom: 1.3, // crop control
width, height, pixelRatio, // explicit size for off-screen renders
// cutout / sticker
cutout: true, // transparent background, subject only
cutoutMode: 'alpha', // alpha (exact) | key/flood (draft) | auto
cutoutOutline: 8, // px of paper bleed = the die-cut rim
cutoutOutlineColor: '#ffffff',
cutoutFill: 'paper', // 'paper' = stock inside the shape, 'none' = clear vinyl
cutoutTolerance: 0.22, // key mode: 0..1 colour distance that counts as backdrop
cutoutClose: 2, // key mode: morphological closing, seals leaks into fur
});
Procedural fields (hero bands, blobs, animated reveals):
renderHalftoneField(canvas, (u, v) => 1 - Math.hypot(u - .5, v - .5) * 1.7, { cell: 8 });
Procedure
- Study references before choosing parameters. Fetch 2–4 real artefacts (a macro of a printed screen, a pre-1970 colour li
Установить halftone-art в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл halftone-art?
Build halftone dot art for web: CSS, canvas, SVG, React.
Как установить скилл halftone-art?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл halftone-art запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic