cfrs

Crates.iocfrs
lib.rscfrs
version1.1.0
sourcesrc
created_at2024-04-14 16:59:20.72781
updated_at2024-04-15 05:27:13.983917
descriptionCFRS[] in Rust.
homepagehttps://github.com/JacobLinCool/cf.rs
repositoryhttps://github.com/JacobLinCool/cf.rs
max_upload_size
id1208381
size2,894,674
JacobLinCool (JacobLinCool)

documentation

README

cf.rs

CFRS[] in Rust.

larger-image

Installation

cargo install cfrs

For library users:

cargo add cfrs

Usage

Animated GIF

cfrs out.gif '[[[[[[[[[[FS]]]]R]]RR]]RRCC]][[[[[[[[S]]]]]]]]'

flower-animated.gif

Static Images

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]]'

flower.jpg

Image Dimensions

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]]]]]]]'

larger-image

Background Color

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]'

white-background.jpg

Commit count: 13

cargo fmt