Death Star: Difference between revisions
Content added Content deleted
Line 881: | Line 881: | ||
θ = [0; (0.5: n - 0.5) / n; 1] |
θ = [0; (0.5: n - 0.5) / n; 1] |
||
φ = [(0: 2n - 2) * 2 / (2n - 1); 2] |
φ = [(0: 2n - 2) * 2 / (2n - 1); 2] |
||
⚫ | |||
# x modified to approximate effect of a subtracted sphere of radius 0.8 |
|||
⚫ | |||
y = [sinpi(φ)*sinpi(θ) for θ in θ, φ in φ] |
y = [sinpi(φ)*sinpi(θ) for θ in θ, φ in φ] |
||
z = [cospi(θ) for θ in θ, φ in φ] |
z = [cospi(θ) for θ in θ, φ in φ] |
||
plt = surface(x, y, z, color = rand(RGBAf0, 124, 124)) |
plt = surface(x, y, z, color = rand(RGBAf0, 124, 124)) |
||
axis = plt[Axis] |
axis = plt[Axis] |
||
Line 892: | Line 891: | ||
axis[:showaxis] = (false,false,false) |
axis[:showaxis] = (false,false,false) |
||
Makie.save("deathstar-julia.jpg", plt)</lang> |
Makie.save("deathstar-julia.jpg", plt))</lang> |
||
=={{header|LSL}}== |
=={{header|LSL}}== |