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

Fails on non-square images #1

Closed
stasoid opened this issue Aug 18, 2017 · 2 comments
Closed

Fails on non-square images #1

stasoid opened this issue Aug 18, 2017 · 2 comments
Assignees

Comments

@stasoid
Copy link

stasoid commented Aug 18, 2017

In function read_pixels_as_brainfuck:
image.size[0] - width (number of columns); image.size[1] - height (number of rows)
So instead of

        for r in range(image.size[0]):
            for c in range(image.size[1]):

it should be

        for r in range(image.size[1]):
            for c in range(image.size[0]):
@DylanMeeus
Copy link
Owner

Thank you. I will take a look at this over the weekend ;-)

@DylanMeeus
Copy link
Owner

I forgot about this, but made some changes to the interpreter and was reminded of your comment by doing so.

I have updated the code

Thanks for pointing that out!

@DylanMeeus DylanMeeus self-assigned this Oct 27, 2017
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

2 participants