drawille icon indicating copy to clipboard operation
drawille copied to clipboard

Move turtle forward without brushing

Open A1rPun opened this issue 6 years ago • 0 comments

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!

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⢇⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠤⠒⠉⠀⠀⠈⠑⠢⢄
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠤⠊⢹⠉⠒⠤⣀⢀⡠⠔⠊⢹⠉⠢⢄⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⢸⠀⠀⠀⠀⡇⠀⠀⠀⢸⠀⠀⠀⢸
⠀⠀⠀⣀⠤⠢⢄⡀⠀⢸⠀⠀⡠⠜⠀⠀⠀⠀⡇⠀⠀⠀⠘⠤⡀⠀⢸⠀⠀⣀⠤⠢⢄⡀
⠠⣒⠉⠀⠀⠀⠀⠈⢑⣺⣒⠉⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠈⢑⣺⣒⠉⠀⠀⠀⠀⠈⢑⡢
⠀⠀⠉⠒⠤⡠⠔⠊⠁⢸⠀⠉⠢⢄⠀⠀⠀⠀⡇⠀⠀⠀⢀⠤⠊⠁⢸⠀⠉⠒⠤⡠⠔⠊⠁
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⢸⠀⠀⠀⠀⡇⠀⠀⠀⢸⠀⠀⠀⢸
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠒⠤⡀⢸⠀⣀⠤⠒⠑⠢⢄⡀⢸⠀⡠⠔⠊
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠭⣀⠀⠀⠀⠀⢀⡨⠝⠉
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠒⡔⠊⠁
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁

A1rPun avatar Oct 05 '18 16:10 A1rPun