|
|
Princess Principal (2023-03-01) PNG splitters. Each program accepts 3 arguments: prog input.png output1.png output2.png Which reads input.png and writes two output files, such that the two images overlaid on top of each other will restore the original image. Basically the first output file is same as the input file with some a pattern of transparent pixels added, and the second output file is the same but the location of the transparent pixels are inverted. Ten executables are packaged here, each with a different pattern: ange1.exe ange2.exe charlotte1.exe charlotte2.exe dorothy1.exe dorothy2.exe beatrice1.exe beatrice2.exe chise1.exe chise2.exe Note that there are 10 executables, but only 5 source files. Each source file produces two executables based on whether they are compiled as C or C++, for example: gcc ange.c -lm -lpng -o ange1.exe g++ ange.c -lm -lpng -o ange2.exe Input can be valid PNG images in any format, including those with transparencies. This allows running multiple programs in series to combine different patterns. Output will always be 8bit RGBA. Demo: https://twitter.com/uguu_org/status/1631207051602042880 A few other helpful PNG utilities are also included: stack_png.exe input.png... > output.png Overlay a list of PNGs and write result to stdout, useful for reconstructing the original input images to the PNG splitters. "-" can be used as a filename to read from stdin instead. make_png.exe width height r g b a > output.png Generate a PNG of arbitrary size and color to stdout. Default for rgba values are 255 (i.e. opaque white). concat_png_lr.exe input.png... > output.png concat_png_tb.exe input.png... > output.png Concatenate PNG files from left to right or top to bottom, and write output to stdout. "-" can be used as a filename to read from stdin instead. Each input file is read only once, so "-" and named pipes can be specified multiple times. Replays for how the ASCII arts were made can be found under edit/ directory. Templates are based on characters from Princess Principal. -- omoikane@uguu.org - https://uguu.org/
RAR | ZIP | / | |
2025-08-26 |