Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 485 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 485 Bytes

Usage

color2alpha input.jpg ouput.png 'sphere' 'linear' 18 193

color2alpha input_filename output_filename shape interpolation transparency_threshold opacity_threshold

input_filename

output_filename

shape=['sphere', 'cube']

interpolation=['linear', 'power', 'root', 'smooth', 'inverse-sin']

transparency_threshold=[0 to 255 if shape is 'cube' or if shape is 'sphere' 442 default 18]

opacity_threshold=[0 to 255 if shape is 'cube' or if shape is 'sphere' 442 default 193]