orhnk / rascii Goto Github PK
View Code? Open in Web Editor NEWAdvanced image to ASCII art tool & crate written in Rust ๐ฆ๐
License: MIT License
Advanced image to ASCII art tool & crate written in Rust ๐ฆ๐
License: MIT License
rascii_art::render(_image)
and rascii_art::render(_image)_to
accomplish the same thing, and introduce confusing.
The code is also duplicated in the library making it longer to compile and not great in code quality.
In the default character set:
pub const DEFAULT: &[&str] = &[
" ", ".", "`", "^", "\"", "\\", ",", ":", ";", "I", "l", "!", "i", ">", "<", "~", "+", "_",
"-", "?", "]", "[", "}", "{", "1", ")", "(", "|", "\\", "\\/", "/", "t", "f", "j", "r", "x",
"n", "u", "v", "c", "z", "X", "Y", "U", "J", "C", "L", "Q", "0", "O", "Z", "m", "w", "q", "p",
"d", "b", "k", "h", "a", "o", "*", "#", "M", "W", "&", "8", "%", "B", "$", "@",
];
Doesn't "\\/"
result in two characters? When I send this sample image into it:
This causes the line to not be a uniform length:
Attempted to run with the recommended usage of cargo install rascii_art
. However, code errors out at expanduser
crate. Attached error message is included below:
...Other Packages/Crates
Compiling serde v1.0.183
Compiling parking_lot v0.12.1
Compiling ahash v0.7.6
Compiling time v0.1.45
Compiling dirs v1.0.5
Compiling pwd v1.4.0
Compiling byteorder v1.4.3
Compiling expanduser v1.2.2
Compiling chrono v0.4.26
error[E0432]: unresolved import `pwd::Passwd`
--> C:\Users\MyUser\.cargo\registry\src\index.crates.io-6f17d22bba15001f\expanduser-1.2.2\src\lib.rs:10:5
|
10 | use pwd::Passwd;
| ^^^^^^^^^^^ no `Passwd` in the root
For more information about this error, try `rustc --explain E0432`.
error: could not compile `expanduser` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
Is there a suggested fix for this? Thanks again!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.