Jump to content

Marching squares: Difference between revisions

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

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.