Blobs 101?
-
I'm using some blobby graphics for an upcoming project and thought it would have been nice to try it with Drawbot! Got into Just's code on Github and while I can probably follow it enough, I'm not sure I understand some of it; maybe more comments?
I understand the use of the functions, and also of the but not the use of the basePen importing and using, or the use of the sin/cos for looping; couldn't find anything online so I figured I'd post here and ask if anyone has any broken down tutorials on generating blobified goodness?
Gonna continue myself but figured it couldn't hurt to ask
-
@agyei oh, those examples are somewhat outdated. So called "pen" functionality has been integrated into DB since. Something like this should work:
bez = BezierPath() bez.qCurveTo((20, 20), (30, 150), (150, 180), (240, 140), (220, 40), None) drawPath(bez)
-
@agyei I have updated the gist example to not use the intermediate pen object anymore, but work directly with a
BezierPath
.
-
@agyei the sin and cos calls are about calculating points on a circle. I should make a little tutorial about that.
-
Thanks @justvanrossum! Super helpful
Yeah, I have been kind of getting the hang of the use of the sin and cos calls (or rather, why they're used to make good loops) but yeah, a tutorial would be awesome!
-
Good news about the pen functionality—glad I saw that, it'll come in handy for a couple things I'm working on …
-
@mauricemeilleur Do you usually share some of your codes somewhere? I follow your experiments on Twitter and was wondering if you share some of your sources.
-
I mean to do so at some point—probably on GitHub, probably this summer when I can take a little time to clean up code and organize the sketches.