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

I only get a blank window on my Mac #14

Closed
kantel opened this issue Sep 29, 2017 · 3 comments
Closed

I only get a blank window on my Mac #14

kantel opened this issue Sep 29, 2017 · 3 comments

Comments

@kantel
Copy link

kantel commented Sep 29, 2017

I tried to ru p5 on my MacBook Pro with MacOS X, 10.9. and Anaconda Python 3.5.3 (x86, 64 Bit. This is my example code:

from p5 import *

def setup():
    size(400, 200)
    title("Dein Titel hier …")

def draw():
    background(255, 100, 150)
    center = (width / 2, height / 2)
    fill(0)
    rect_mode("RADIUS")
    square(center, 50)

run()

I only get a blank window like this:

p5whitewindow
I tried several of the examples and get always the same result (only a blank window). And it doesn't matter if I started the sketch fom the terminal, the interpreter or within TextMate. The result was always the same.

@abhikpal
Copy link
Member

abhikpal commented Oct 1, 2017

Hmmm.. interesting. I'm pretty sure this has something to do with #10. Can someone else reproduce this on their computer?

@kantel
Copy link
Author

kantel commented Oct 1, 2017

I did a few more tests and wrote a print()-Statement after the last line in draw(). The print()were executed. On wednesday I've sitting on a Mac with MacOS X 10.10 (and possibly with 1011). I will try to run this small program there and I will publish the results (pls excuse my bad (d)english).

@abhikpal
Copy link
Member

abhikpal commented Oct 1, 2017

The print()were executed.

I'm very sure that this issue is the same as #10. Since we're seeing some output for the prints, we know that the draw() loop is running. However, since there is no actual output on the screen, we know that the screen isn't refreshing as it should.

On wednesday I've sitting on a Mac with MacOS X 10.10 (and possibly with 1011)

👍

I will publish the results

Can you just do that on the discussion thread for #10? I'm closing this for now, 'cause I'm pretty sure this issues and #10 are the same thing.

Thank you so much for putting time into testing this :) ...and your English is perfectly fine; don't worry.

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

No branches or pull requests

2 participants