Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify how many times each character from variable 'pixels' is used to draw ASCII image … #41

Closed
fooness opened this issue Oct 27, 2016 · 4 comments
Labels

Comments

@fooness
Copy link

fooness commented Oct 27, 2016

Dear community, I thought it would be an adorable feature to be able to specify the character specific amount/number/times, each character for drawing the ASCII image—as specified in the pixels variable—should be used for drawing the ASCII image. This would also be very interesting for image-to-ascii-cli.

Kindest regards and thank you in advance.

@IonicaBizau
Copy link
Owner

There is an example here which can be changed to get what you want:

converted.forEach(cRow => {
cRow.forEach(px => {
px.char = snip[i = ++i % snip.length];
});
});

@fooness
Copy link
Author

fooness commented Oct 28, 2016

Thank you for this snippet! It seems, image-to-ascii-cli does not have stringify integrated yet, is that correct or am I overseeing something? Kindest regards!

@fooness
Copy link
Author

fooness commented Nov 1, 2016

So after a few hours of trying it seems I can’t figure that out. Help would be very welcome. Thank you!

@IonicaBizau
Copy link
Owner

Please ask such questions on Stackoverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants