# Diamond painting pattern maker > How many drills does your diamond painting need? Turn a photo into a diamond painting chart: DMC colour numbers, drills per colour with spares, and a chart to print. Make a diamond painting pattern from a photo: DMC drill colours, the number of drills per colour with spares, canvas size and a printable chart. On your device. - Page: https://how.box/diamond-painting/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/diamond-painting/?by={by}&w={w}&h={h}&fw={fw}&fh={fh}&u={u}&ds={ds}&dr={dr}&c={c}&d={d}&dt={dt}&clean={clean}&en={en}&br={br}&ct={ct}&sa={sa}&bg={bg}&min={min}&sp={sp}&crop={crop}&z={z}&cx={cx}&cy={cy}&pp={pp}&po={po}&pc={pc} - `by` (drills or size): Canvas given as a size or in drills. Example: `size`. - `w` (whole number 10 to 200): Drills across. Example: `120`. - `h` (whole number 10 to 200): Drills down. Example: `120`. - `fw` (number 1 to 300): Canvas width. Example: `30`. - `fh` (number 1 to 300): Canvas height. Example: `30`. - `u` (cm or in): Length unit: cm or in. Example: `cm`. - `ds` (mini, standard or large): Canvas spacing: mini, standard or large. Example: `standard`. - `dr` (round or square): Drill shape: round or square. Example: `round`. - `c` (whole number 2 to 80): Most drill colours. Example: `24`. - `d` (none, floyd-steinberg, atkinson, jarvis-judice-ninke, stucki, sierra, sierra-two-row, sierra-lite, burkes, bayer-2, bayer-4, bayer-8 or blue-noise): Dithering method. Example: `none`. - `dt` (whole number 0 to 100): Dithering strength in percent. Example: `75`. - `clean` (boolean): Clean up small specks before palette matching. Example: `true`. - `en` (boolean): Enhance colours (auto levels and a little more colour). Example: `true`. - `br` (whole number -100 to 100): Picture brightness, -100 to 100. Example: `0`. - `ct` (whole number -100 to 100): Picture contrast, -100 to 100. Example: `0`. - `sa` (whole number -100 to 100): Picture colour strength, -100 to 100. Example: `0`. - `bg` (fill or skip): Fill or skip the background. Example: `fill`. - `min` (whole number 0 to 200): Fewest drills a colour keeps. Example: `10`. - `sp` (whole number 0 to 50): Spare drills in percent. Example: `10`. - `crop` (picture, square, landscape_4_3, portrait_3_4, landscape_3_2, portrait_2_3, landscape_16_9 or portrait_9_16): Crop shape. Example: `picture`. - `z` (whole number 100 to 400): Crop zoom in percent. Example: `100`. - `cx` (whole number 0 to 100): Crop centre across, percent. Example: `50`. - `cy` (whole number 0 to 100): Crop centre down, percent. Example: `50`. - `pp` (a4 or letter): Printed chart paper. Example: `a4`. - `po` (portrait or landscape): Printed chart orientation. Example: `portrait`. - `pc` (boolean): Coloured chart (true) or black symbols (false). Example: `true`. Example answer: https://how.box/diamond-painting/?by=size&w=120&h=120&fw=30&fh=30&u=cm&ds=standard&dr=round&c=24&d=none&dt=75&clean=1&en=1&br=0&ct=0&sa=0&bg=fill&min=10&sp=10&crop=picture&z=100&cx=50&cy=50&pp=a4&po=portrait&pc=1 The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `diamond_painting_plan`: Count the drills of a diamond painting canvas without a picture: from a canvas size in cm or in (size_by "size") or drills across and down (size_by "drills", 10–200 each), the drill size (mini 2.0 mm, standard 2.5 mm, large 2.8 mm spacing) and the spare percentage. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"diamond_painting_plan","arguments":{"size_by":"size","cols":120,"rows":120,"width":30,"height":30,"unit":"cm","drill_size":"standard","spare":10}}}` - GET: https://how.box/mcp/run/diamond_painting_plan?size_by=size&cols=120&rows=120&width=30&height=30&unit=cm&drill_size=standard&spare=10 ## How it works A diamond painting is a canvas printed with a grid of squares, one drill (a small resin gem) stuck on each. To plan one from a picture, the picture is cut into the same grid: each square takes the average colour of the part of the picture it covers, and that colour is matched to the nearest DMC colour, the numbering most drills use. Nearness is measured the way eyes see colour (the CIEDE2000 colour difference). With a limit on colours, the tool first picks the colours that represent the whole picture best; colours used for only a few drills are merged into their nearest neighbour. The drill count is the squares: drills across × drills down, where drills across = canvas width ÷ drill spacing. Standard drills sit 2.5 mm apart, mini drills 2.0 mm and large round drills 2.8 mm, so a 30 × 40 cm canvas holds about 120 × 160 = 19,200 standard drills. Buy a little more than the count: the tool adds a spare percentage to each colour (10 % by default), rounded up. On-screen colours are approximations of the coloured resin: check the kit's own colour list before you buy. Real canvases keep a blank border for handling, which is not counted here. Dithering suggests extra shades with scattered drills; it helps photos but multiplies the colour changes you place. ## FAQ **How many drills are in a diamond painting?** The squares of the canvas: its width and height in millimetres divided by the drill spacing, multiplied. A 30 × 30 cm canvas at 2.5 mm spacing holds 120 × 120 = 14,400 drills. **What is the difference between round and square drills?** Square drills (2.5 mm) sit edge to edge and cover the canvas fully; round drills (2.8 mm spacing) leave tiny gaps and are easier to place. Only the look of the preview changes here; the canvas spacing changes the count. **How many spare drills should I buy?** Ten percent is a safe margin for dropped and lost drills. The key table shows the count with your spare percentage, rounded up per colour. **Are the DMC numbers exact matches for my kit?** They are the nearest DMC colours by colour difference, using approximate on-screen colours. Kits often use their own bags and numbers, so compare with the kit's colour list. **Can I print the chart at real size?** The chart prints larger than the canvas so the symbols stay readable, in colour or black symbols only, over as many pages as it needs. It is a guide to the pattern, not a canvas. **Is my picture uploaded?** No. The picture is read and turned into a chart in your browser. A shared link carries only the settings, so the other person needs the same picture. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)