# Blank SVG export

**URL:** <https://discourse.processing.org/t/blank-svg-export/41460>\
**Category:** Coding Questions\
**Created:** [March 26, 2023, 7:40pm UTC](https://discourse.processing.org/t/blank-svg-export/41460 "2023-03-26T19:40:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asymmetric](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/asymmetric/32/16577_2.png) [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Post date:** [March 26, 2023, 7:40pm UTC](https://discourse.processing.org/t/blank-svg-export/41460/1 "2023-03-26T19:40:26Z")

</div>

Hi, I’m trying to export the following code output vis processing.js, but the .SVG file is blank white whenever I do so. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [March 27, 2023, 10:10am UTC](https://discourse.processing.org/t/blank-svg-export/41460/2 "2023-03-27T10:10:18Z")

</div>

Hello @asymmetric,

It works with Processing 4.2 when you use the correct method for 3D Geometry:

> **[SVG Export / Libraries](https://processing.org/reference/libraries/svg/index.html)**
>
> Create SVG files.

I changed `stroke(250);` to `stroke(128);` so I could see it on a white or black background.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/0/9/09c51f3885d046b4b5e5b15cda393a55a2ac9ec7.jpeg)

You will also see another error when you set your mode to texture it.

Some references to Processing.js (no longer actively developed):

> **[GitHub - processing-js/processing-js: A port of the Processing visualization...](https://github.com/processing-js/processing-js)**
>
> A port of the Processing visualization language to JavaScript. - GitHub - processing-js/processing-js: A port of the Processing visualization language to JavaScript.

> **[Which Processing should I use?](https://happycoding.io/tutorials/p5js/which-processing)**
>
> Should I use p5.js or Processing? What's the difference between Processing, Processing.js, and p5.js?

`:)`

---

<div class="post-metadata">

**Author:** ![asymmetric](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/asymmetric/32/16577_2.png) [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Post date:** [March 28, 2023, 6:23pm UTC](https://discourse.processing.org/t/blank-svg-export/41460/3 "2023-03-28T18:23:56Z")

</div>

I receive the following error when I follow your directions, @glv.

The SVG file is still blank ☹

nishLifecycleAction(com.jogamp.opengl.util.FPSAnimator$3): ++++++ timeout reached ++++++ AppKit Thread  
finishLifecycleAction(com.jogamp.opengl.util.FPSAnimator$3): OK false- pollPeriod 10, blocking true → res false, waited 1001/1000 - AppKit Thread

- com.jogamp.opengl.util.FPSAnimator[started true, animating true, paused false, drawable 1, totals[dt 0, frames 3, fps 0.0], modeBits 1, init’ed true, animThread Thread[main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1,5,main], exclCtxThread false(null)]  
[2]: com.jogamp.opengl.util.AnimatorBase.finishLifecycleAction(AnimatorBase.java:634)  
[3]: com.jogamp.opengl.util.FPSAnimator.stop(FPSAnimator.java:326)  
[4]: processing.opengl.PSurfaceJOGL.stopThread(PSurfaceJOGL.java:691)  
[5]: processing.core.PApplet.dispose(PApplet.java:3413)  
[6]: processing.core.PApplet.exit(PApplet.java:3378)  
[7]: processing.opengl.PSurfaceJOGL$NEWTWindowListener.windowDestroyNotify(PSurfaceJOGL.java:918)  
[8]: jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4471)  
[9]: jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4399)  
[10]: jogamp.newt.WindowImpl.windowDestroyNotify(WindowImpl.java:4766)

---

<div class="post-metadata">

**Author:** ![asymmetric](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/asymmetric/32/16577_2.png) [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Post date:** [March 28, 2023, 6:42pm UTC](https://discourse.processing.org/t/blank-svg-export/41460/4 "2023-03-28T18:42:18Z")

</div>

Thank you, glv!!! it worked in the newest version of Processing! You rock!!!
