Wednesday, December 1, 2021

 

The
year is almost over. The last prompt for Inktober 2019 was ripe so I tried to draw smashed fruit, with little success. Tomorrow I will get the first two prompts for Inktober 2017 (swift and divided). So, smashing two little misshapen tomatoes, with a few seeds and chunks of flesh. 

Back to making shapes from a vector, from two points, an initial point at the origin to the second point and then we define a third point using dx and dy to add dy to px1 and sy to py1, where p0 is the origin and p1 is the second point, so p2 is (px1+dy, py1+dx), moved closer to the origin. We want p0 and p1 to be let's say 10 px apart, dx = px1-px0, dy = py1-py0 and distance equal square root of dx^2+dy^2, so px1 = px0+dx*10/dst, py1 = py0+dy*10/dst. Actually correct to dx and dy, then add to p0 to get p1 and make p2 (px1+dy, py1+dx), then do the same for p2 to make p1 and p2 at the radius, therefore an arc of points


No comments:

Post a Comment