4/1/2024 0 Comments Drawboard save as jpg![]() ![]() % Next, we draw a white stone, and a special version for the bottom row:Īddto whitestone contour fullcircle scaled scaleĪddto whitestoneb contour fullcircle scaled scaleĪddto whitestone doublepath (0.55*scale,0)-(0,0)-(0,-0.55*scale)Īddto whitestoneb doublepath (0.55*scale,0)-(0,0) withpen currentpen Īddto whitestone contour ourellipse withcolor Shifted (scale*(1+-+ratio)*sind(ltip)/2, 0)Īddto blackstone contour ourellipse withcolor (0.7*(1+-+ratio)**2*white) Īddto blackstoneb contour ourellipse withcolor (0.7*(1+-+ratio)**2*white) % First, we draw the black stone, and a special version for the bottom row:Īddto blackstone contour fullcircle scaled scaleĪddto blackstoneb contour fullcircle scaled scaleĪddto blackstone doublepath (0.55*scale,0)-(0,0)-(0,-0.55*scale)Īddto blackstoneb doublepath (0.55*scale,0)-(0,0)Īddto blackstone contour fullcircle scaled scale Īddto blackstoneb contour fullcircle scaled scale ![]() % the angle at which the light source is tipped.Įllipse := fullcircle scaled scale xscaled lz Num = 150 % Levels of shading in each stone. Scale=0.6in % scale is the diameter of a stone To make this image, save the following Metapost program as go.mp: Notice the shadows! Now that the code is figured out, it's trivial to set up other Go configurations Just ask! The shading is done according to the Lambertian diffuse lighting model. I'm quite proud of the stones in this image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |