Skip to content

PDF sketches using imported or module mode? #43

Answered by hx2A
tabreturn asked this question in Q&A
Discussion options

You must be logged in to vote

I just tested this using run_sketch:

def setup():
    size(400, 400, PDF, "/tmp/test.pdf")

    for _ in range(20):
        fill(255 * random(), 255 * random(), 255 * random())
        ellipse(width * random(), height * random(), 20, 20)
    exit_sketch()

I don't think it would work without the exit_sketch().

I saw your Axidraw posts on Twitter and know PDFs can be used with that plotter. Out of curiosity, is your question related to that? Or are you making something for the Processing Community Catalog (for which PDFs are the required format and submissions are due at the end of the month)?

It happens I bought an Axidraw and it will arrive soon. I'd be happy to collaborate with you on …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@tabreturn
Comment options

@hx2A
Comment options

Answer selected by tabreturn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants