# How do I save this as a video, without background?

**URL:** <https://discourse.processing.org/t/how-do-i-save-this-as-a-video-without-background/19174>\
**Category:** Beginners\
**Created:** [March 30, 2020, 9:02am UTC](https://discourse.processing.org/t/how-do-i-save-this-as-a-video-without-background/19174 "2020-03-30T09:02:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![noa\_noa](https://avatars.discourse-cdn.com/v4/letter/n/ecc23a/32.png) [@noa\_noa](https://discourse.processing.org/u/noa_noa)\
**Post date:** [March 30, 2020, 9:02am UTC](https://discourse.processing.org/t/how-do-i-save-this-as-a-video-without-background/19174/1 "2020-03-30T09:02:26Z")

</div>

This is My code (where do i add the saveFrames()? or what do I add?:

```auto
void setup() {
 background(600);
 size(800, 800);
 
}

void draw() {
 background(255);
 stroke(0);
 strokeWeight(1.4);
 scale(0.8);
  

 

 
 translate(width/1.7, height/1.6);
 
 for (int i = 0; i < NUM_LINES; i++) {
 line(x1(t + i), y1(t + i), x2(t + i), y2(t + i));
 }
 t += 0.3;
}

float x1(float t) {
  return sin(t / -10) * 100 + sin(t / 5) * 100;
}

float y1(float t) {
  return cos(t / 10) * 20;
}

float x2(float t) {
  return sin(t / 20) * 100 + sin(-t) * 2;
}

float y2(float t) {
  return cos(-t / 20) * 500 + cos(-t / 12) * 20;
}

```

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [March 30, 2020, 1:18pm UTC](https://discourse.processing.org/t/how-do-i-save-this-as-a-video-without-background/19174/2 "2020-03-30T13:18:45Z")

</div>

Hello,

and welcome to the forum!

Great to have you here.

Just at the end of draw().

see [https://www.processing.org/reference/saveFrame\_.html](https://www.processing.org/reference/saveFrame_.html)

and then use the movie maker in processing, Menu Tools

Warm regards, Chrisir

---

<div class="post-metadata">

**Author:** ![noa\_noa](https://avatars.discourse-cdn.com/v4/letter/n/ecc23a/32.png) [@noa\_noa](https://discourse.processing.org/u/noa_noa)\
**Post date:** [March 31, 2020, 7:57am UTC](https://discourse.processing.org/t/how-do-i-save-this-as-a-video-without-background/19174/4 "2020-03-31T07:57:20Z")

</div>

> [@noa\_noa](#):
>
> saveFrames()

Thank you so much!  
Everything is fine - was writing it in the wrong place
