Pentagram: Difference between revisions
m
→{{header|Julia}}
mNo edit summary |
|||
Line 252:
Drawing(1200, 1400)
origin()
# To get a different color border from the fill, draw twice, first with fill, then without.
sethue("
▲setline(2)
star(0, 0, 500, 5, 0.39, 0, :fill)
sethue("navy")
verts = star(0, 0, 500, 5, 0.5, 0, vertices=true)
poly([verts[i] for i in [1,5,9,3,7,1]], :stroke)
|