填写FOR循环中构建的Metapost图
我正在尝试在 Metapost 中创建一个齿轮,并希望为其填充颜色。我想出了以下代码: vardef sin(expr xx) = sind(xx) enddef; vardef cos(expr xx) = cosd(xx) enddef; beginfig(1) inc := 15; inner_radius := 1.0cm; outer_radius := 1.3cm; for ang = 0 step 2 * inc until 360: draw (inner_radius * sin(ang), inner...