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

Move turtle forward without brushing #41

Open
A1rPun opened this issue Oct 5, 2018 · 0 comments
Open

Move turtle forward without brushing #41

A1rPun opened this issue Oct 5, 2018 · 0 comments

Comments

@A1rPun
Copy link

A1rPun commented Oct 5, 2018

I would like to call .forward() or .fd() without enabling the brush.
I'm using .up() and .down() to control the brush but forward implicitly enables the brush and I would like to know why this is intended behaviour.

The fix for me would be removing these lines from drawille.py.

prev_brush_state = self.brush_on
self.brush_on = True
self.brush_on = prev_brush_state

I'm currently having a blast using drawille!

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⢇⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠤⠒⠉⠀⠀⠈⠑⠢⢄
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠤⠊⢹⠉⠒⠤⣀⢀⡠⠔⠊⢹⠉⠢⢄⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⢸⠀⠀⠀⠀⡇⠀⠀⠀⢸⠀⠀⠀⢸
⠀⠀⠀⣀⠤⠢⢄⡀⠀⢸⠀⠀⡠⠜⠀⠀⠀⠀⡇⠀⠀⠀⠘⠤⡀⠀⢸⠀⠀⣀⠤⠢⢄⡀
⠠⣒⠉⠀⠀⠀⠀⠈⢑⣺⣒⠉⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠈⢑⣺⣒⠉⠀⠀⠀⠀⠈⢑⡢
⠀⠀⠉⠒⠤⡠⠔⠊⠁⢸⠀⠉⠢⢄⠀⠀⠀⠀⡇⠀⠀⠀⢀⠤⠊⠁⢸⠀⠉⠒⠤⡠⠔⠊⠁
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⢸⠀⠀⠀⠀⡇⠀⠀⠀⢸⠀⠀⠀⢸
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠒⠤⡀⢸⠀⣀⠤⠒⠑⠢⢄⡀⢸⠀⡠⠔⠊
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠭⣀⠀⠀⠀⠀⢀⡨⠝⠉
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠒⡔⠊⠁
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant