# Joint all layers in only one with Luxor

**URL:** https://discourse.julialang.org/t/joint-all-layers-in-only-one-with-luxor/87798
**Category:** General Usage
**Tags:** luxor
**Created:** [September 26, 2022, 6:15am UTC](https://discourse.julialang.org/t/joint-all-layers-in-only-one-with-luxor/87798 "2022-09-26T06:15:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jdavidc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jdavidc/32/42973_2.png) [@jdavidc](https://discourse.julialang.org/u/jdavidc)
#### Post date: [September 26, 2022, 6:15am UTC](https://discourse.julialang.org/t/joint-all-layers-in-only-one-with-luxor/87798/1 "2022-09-26T06:15:39Z")

</div>

I am doing an image pixel by pixel using Luxor.rect(), but I need to collapse all my “squares” in only one layer. I want to export the image as a vector because I need to use it as a CAD file and having many layers is a problem. Does anybody have an idea?

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [September 26, 2022, 7:35am UTC](https://discourse.julialang.org/t/joint-all-layers-in-only-one-with-luxor/87798/2 "2022-09-26T07:35:58Z")

</div>

Hi! A layer is an environment - position, scale, transform matrix, rotation, color, line width, etc - but it doesn’t affect the drawing order.

You don’t have to use layers if you vary scale.rotation, position, color, etc - just keep track of them carefully, undo transforms when you’ve finished them, etc.
