anaglyph 0.1.1

An anaglyph maker
Documentation
  • Coverage
  • 18.18%
    2 out of 11 items documented0 out of 2 items with examples
  • Size
  • Source code size: 8.42 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.97 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 40s Average build duration of successful builds.
  • all releases: 40s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Coddeus/anaglyph
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Coddeus

Anaglyph

This crate produces anaglyphs from any image decodable with the image crate.
Choose your input image, the output filename, the horizontal/vertical offsets between the two colors, and the two colors.
The output color couples are the ones listed here.

License: MIT OR Apache-2.0

Example usage:

With this (awesome) sample image, by Bao Menglong on Unsplash:

And this code:

create("bao-menglong-unsplash.jpg", "output_bottomright.png", 100, 20, Coloring::RedCyan);
create("bao-menglong-unsplash.jpg", "output_topright.png", 70, -14, Coloring::RedGreen);
create("bao-menglong-unsplash.jpg", "output_bottomleft.png", -30, 8, Coloring::Anachrome);
create("bao-menglong-unsplash.jpg", "output_topleft.png", -10, -2, Coloring::Trioscopic);

Results (put on your /🟥∧🟦\ glasses):

output_bottomright.png:

output_topright.png:

output_bottomleft.png:

output_topleft.png: