Pentagram: Difference between revisions

Content added Content deleted
m (→‎{{header|C}}: remove attribution)
mNo edit summary
Line 245: Line 245:
}
}
}</lang>
}</lang>

=={{header|Julia}}==
<lang julia>
using Luxor

Drawing(1200, 1400)
origin()
background("white")

# To get a different color border from the fill, draw twice, first with fill, then without.
sethue("red")
setline(2)
star(0, 0, 500, 5, 0.39, 0, :fill)

sethue("navy")
setline(8)
verts = star(0, 0, 500, 5, 0.5, 0, vertices=true)
poly([verts[i] for i in [1,5,9,3,7,1]], :stroke)
finish()
preview()
</lang>


=={{header|Kotlin}}==
=={{header|Kotlin}}==