Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 2.43 KB

README.md

File metadata and controls

44 lines (34 loc) · 2.43 KB

halftone

A python module that uses creates CMYK images and halftone representations

Heavily adapted from this StackOverflow answer by fraxel and this code by Phil Gyford

## Usage

halftone.py [-h] [-a ANGLES [ANGLES ...]] [-b {1,2,4,6,8}] [-c] [-d]
               [-e EXTRA_FILE_NAME] [-f FILL] [-g GRAY] [-p SHARPNESS]
               [-s SIZE]
               file

Creates four CMYK images and a combined image. Provides options for haltoning or not (-d)

OPTION DESCRIPTION Default
-h, --help show this help message and exit n/a
-b, --bits {1,2,4,6,8} bits of color info per channel 8
-c, --colorize_CMYK save CMYK files as RGB color images False
-d, --do_not_halftone don't do halftoning False
-e, --extra_file_name final name addition for each channel "_Clr"
-f, --fill dot fill (size) value 0.5
-g, --gray percent of gray component replacement (K level) 100
-p, --sharpness level of sharpness of the dots 1.0
-s, --size half size of averaging region (pixels) 3

Examples

Haltoned CMYK Only
Original Original Image Original Image
C-Channel C Image C Image
M-Channel M Image M Image
Y-Channel Y Image Y Image
K-Channel K Image K Image
Combined CMYK CMYK Image CMYK Image