Pixel Bucket Converter

Pixel Bucket Converter

Crop to square, shrink to a pixel grid, reduce to a palette, clean up stray pixels, and export the level with its buckets.

Cropped source
Shrunk
Final

Histogram and picks

Palette and buckets

Unique colors
0
Strays fixed
0
Buckets
0
Per column
0
ColorPixelsShareBucketsLast bucketAdjust

Click a swatch to choose a replacement color, or use Pick to take one from the source or shrunk image. Either one locks that color. Buckets = pixels ÷ ammo, rounded up; the last bucket holds the remainder. Per column assumes 5 columns.

Level export

pixels is one row per line of the grid, each value an index into palette. buckets lists the ammo in each bucket, per color. imageSeed comes from the image itself; seedIncrement is how many steps past it the first winnable deal was found, and seed is their sum.