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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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$ cargo run -- --help
    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running `target/debug/kicad_halftone --help`
kicad_halftone 0.1.0
Ian Rees <ian.rees@gmail.com>
Generate KiCad footprints from bitmaps, using halftone technique.  At least one of output width and output height needs
to be specified.  If one is specified, then the input image's aspect ratio will be preserved, but if both are specified
the image will be scaled to fit.

USAGE:
    kicad_halftone [FLAGS] [OPTIONS] [ARGS]

FLAGS:
        --help
            Prints help information

    -i, --invert
            Invert image brightness

    -V, --version
            Prints version information


OPTIONS:
    -D, --dot-max <dot_max_diam>
            Maximum diameter of dots [mm]

    -d, --dot-min <dot_min_diam>
            Minimum diameter of dots [mm]

    -s, --spacing <dot_spacing>
            Spacing between dots [mm]

    -h, --height <output_height>
            Output height [mm]

    -w, --width <output_width>
            Output width [mm]


ARGS:
    <INPUT>
            Raster image source

    <OUTPUT>
            Output file name - defaults input base name

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