Crates.io | anaglyph |
lib.rs | anaglyph |
version | 0.1.1 |
source | src |
created_at | 2023-09-19 16:01:42.557037 |
updated_at | 2023-09-19 16:14:50.155902 |
description | An anaglyph maker |
homepage | |
repository | https://github.com/Coddeus/anaglyph |
max_upload_size | |
id | 977019 |
size | 8,411,646 |
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
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);