以下の内容はhttps://sangaku0418.hatenablog.com/entry/2021/09/03/153313より取得しました。


家紋シリーズ 三つ巴(左三つ巴,右三つ巴)

家紋シリーズ 三つ巴(左三つ巴,右三つ巴)

左三つ巴は direction=:left (デフォルト)
右三つ巴は direction=:right
subuunig=true は他の描画プログラムの下請けで呼ばれるときで,plotbegin(), plotend() を呼ばない

plotter.jl を include

sangaku0418.hatenablog.com

include("plotter.jl")

function mitudomoe(; r=1, direction=:left, subunit=false, width=400, height=400)
    !subunit && plotbegin(w=width, h=height)
    θ = atand(sqrt(3)/2)
    p1, p2, p3, p4 = direction == :left ?
        (-30, 90, -θ, 90) :
        (90, 210, 90, 210 + θ)
    for i = 0:2
        plotcircle(0, 0, 320r, startangle=120i+p1, endangle=120i+p2,
            lwd=3, fcol=:black)
        plotcircle(128r*cosd(120i+90), 128r*sind(120i+90), 192r,
            startangle=120i+p3, endangle=120i+p4, lwd=0, fcol=:white)
    end
    for i = 0:2
        plotcircle(174r*cosd(120i-30), 174r*sind(120i-30), 146r,
            lwd=0, fcol=:black)
    end
    !subunit && plotend()
end

mitudomoe()

mitudomoe(direction=:right)




以上の内容はhttps://sangaku0418.hatenablog.com/entry/2021/09/03/153313より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14