Skip to content

Turns raster images in to PCB silkscreen images using halftone technique

License

Notifications You must be signed in to change notification settings

ianrrees/kicad_halftone

Repository files navigation

kicad_halftone

Turns raster images in to PCB silkscreen images using halftone technique

I've been meaning to learn Rust for ages; this is a mainly a toy project towards that. See my post on an earlier iteration for some background.

Example input - photo of Rube Goldberg Example output - screenshot of KiCad footprint Example board - photo of finished PCB with Rube Goldberg halftone image

Still a work in progress, when I've got some free time and feel like programming...

Building

  1. Clone this repo
  2. Install Rust and cargo
  3. $cargo build

Using

➜  kicad_halftone git:(master) ✗ cargo run -- -h
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.03s
     Running `target/debug/kicad_halftone -h`
Generate KiCad footprints from bitmaps, using halftone technique

Usage: kicad_halftone [OPTIONS] <INPUT> [OUTPUT]

Arguments:
  <INPUT>   Raster image source
  [OUTPUT]  Output file name - defaults input base name

Options:
  -s, --spacing <DOT_SPACING>   Spacing between dots [mm] [default: 1.1]
  -d, --dot-min <DOT_MIN_DIAM>  Minimum diameter of dots [mm] [default: 0.15]
  -D, --dot-max <DOT_MAX_DIAM>  Maximum diameter of dots [mm] [default: 1.2]
  -w, --width <OUTPUT_WIDTH>    Output width [mm] [default: 0]
      --height <OUTPUT_HEIGHT>  Output height [mm] [default: 0]
  -i, --invert                  Invert image brightness
  -h, --help                    Print help (see more with '--help')
  -V, --version                 Print version

About

Turns raster images in to PCB silkscreen images using halftone technique

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages