# Changing the background color of a 3D Scene in Makie

**URL:** <https://discourse.julialang.org/t/changing-the-background-color-of-a-3d-scene-in-makie/53490>\
**Category:** Visualization\
**Tags:** question, makie\
**Created:** [January 17, 2021, 4:17pm UTC](https://discourse.julialang.org/t/changing-the-background-color-of-a-3d-scene-in-makie/53490 "2021-01-17T16:17:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![lazarusA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lazarusa/32/6571_2.png) [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Post date:** [January 30, 2021, 9:55pm UTC](https://discourse.julialang.org/t/changing-the-background-color-of-a-3d-scene-in-makie/53490/4 "2021-01-30T21:55:28Z")

</div>

I’m not sure what are you looking for but the following works just fine:

```julia
using GLMakie, ColorSchemes, Colors
# archimedean spiral
a, m, z₀ = 1, 2.1, 0
φ = LinRange(0,20π,500)
r = a*φ
x, y, z = r .* cos.(φ), r .* sin.(φ), m .* r .+ z₀;

set_theme!(backgroundcolor = :black)

fig = Figure(resolution = (500, 500))
ax = LScene(fig)
lines!(x, y, z, color = z, colormap = :viridis)
axis = ax.scene[OldAxis] # you can change more colors here!
axis[:ticks][:textcolor] = :white
fig[1, 1] = ax
#save("./results/FigBlack.png", fig, px_per_unit = 1)
fig

```

![FigBlack](https://global.discourse-cdn.com/julialang/original/3X/7/7/7718614ae548c19be7efaad51582b5bf23331ab1.png)  
For more details you can take a look at this notebook.  
[https://nbviewer.jupyter.org/github/lazarusA/MakieNotebooks/blob/main/MakieBlack.ipynb](https://nbviewer.jupyter.org/github/lazarusA/MakieNotebooks/blob/main/MakieBlack.ipynb)

Best,  
Lazaro

---

_[View the full topic](https://discourse.julialang.org/t/changing-the-background-color-of-a-3d-scene-in-makie/53490)._
