Crates.io | cfrs |
lib.rs | cfrs |
version | 1.1.0 |
source | src |
created_at | 2024-04-14 16:59:20.72781 |
updated_at | 2024-04-15 05:27:13.983917 |
description | CFRS[] in Rust. |
homepage | https://github.com/JacobLinCool/cf.rs |
repository | https://github.com/JacobLinCool/cf.rs |
max_upload_size | |
id | 1208381 |
size | 2,894,674 |
CFRS[] in Rust.
cargo install cfrs
For library users:
cargo add cfrs
cfrs out.gif '[[[[[[[[[[FS]]]]R]]RR]]RRCC]][[[[[[[[S]]]]]]]]'
All formats supported by
image
crate should work.
cfrs out.bmp '[[[[[[[[[[F]]]]R]]RR]]RRCC]]'
cfrs out.jpg '[[[[[[[[[[F]]]]R]]RR]]RRCC]]'
cfrs out.png '[[[[[[[[[[F]]]]R]]RR]]RRCC]]'
cfrs out.webp '[[[[[[[[[[F]]]]R]]RR]]RRCC]]'
Default dimensions are 256x256. You can specify custom dimensions using --width
and --height
flags.
cfrs --width 512 --height 512 out.gif '[[CC[C[C[[[[[[[[[[[F]]]]]][[[R[[[[[[F]]R[[F]]]]]]]]]RS][[R]]]]R]]]RF]]][[[[[[[S]]]]]]]'
You can specify the background color using --background
flag.
cfrs --background white out.bmp '[[[CR[[[[[[[[[[F]]]]FF]FF]FF]R]FF]FF]FF]FFR]FF]'