@frederik Stupid beginner question: where would I find the existing code on my machine that you've fixed here? I want to manually edit the file to take advantage of your improvement until you push the next version of DB …
You can pass an ImageObject to imagePixelColor():
im = ImageObject()
with im:
fill(1, 0, 0)
rect(100, 100, 200, 200)
print(imagePixelColor(im, (150, 140)))
@frederik and @justvanrossum thanks for the thoughtful replies and helpful tips!
Command-E and Command-G will be very useful.
And yeah, I found that early on that DrawBot does reload pretty nicely, so probably I just need to make better use of that.
mm I see!!! the problem is that it works on the drawBot documentation because the .py file really exists on the server.
Ive written a special sphinx tag to be able to provide the download.
I dont know who to create a downloadable file for nodebb (the forum framework) and provide a url for it...
It needs to be a downloadable .py file so drawBot.app can read the script and create a new document with the given text.