Electronic Parts:
The parts came in the mail Monday! Was very excited to test out the raspberry pi and got a "Hello World!" working in no time! No problems with the parts so far, everything has been looking up. I'll try to edit and post the unboxing / basic project explanation video sometime over the weekend.Bézier Curve:
For the past couple days, I've been pondering how to tackle the problem of "tracing" a Bézier curve. After a few minutes on wikipedia, I realized that Béziers are a lot more straightforward than I had originally thought!The basics of a Bézier is to draw lines between the ends and the controls, then find a point at percentage "t" out. From these points you draw a line and continue out, etc. and repeat the process until you are left with one final point, which represents the position on the Bézier "t" percent of the way to the other end...
Wikipedia's "Constructing Bézier curves" has some great examples of how exactly this is done. The one that inspired me the most is this one.
After a couple of minutes and well under 50 lines of programming I cranked out the render seen above.
No comments:
Post a Comment