Marching squares: Difference between revisions
Content added Content deleted
(task needs a more complete description -- looking at the current implementations, no image is being generated) |
m (→{{header|Julia}}: add plotting) |
||
Line 26: | Line 26: | ||
points = [(Int(round(ys[i])) - 1, 6 - Int(round(xs[i]))) for i in eachindex(xs)] |
points = [(Int(round(ys[i])) - 1, 6 - Int(round(xs[i]))) for i in eachindex(xs)] |
||
@show points |
@show points |
||
# Plotting |
|||
using GLMakie |
|||
plt = plot(example) |
|||
lines!(xs, ys, linewidth = 8, color = :red) |
|||
display(plt) |
|||
</lang>{{out}} |
</lang>{{out}} |
||
<pre> |
<pre> |