# Only using line commands

**URL:** <https://discourse.processing.org/t/only-using-line-commands/14294>\
**Category:** Coding Questions\
**Created:** [September 29, 2019, 10:01pm UTC](https://discourse.processing.org/t/only-using-line-commands/14294 "2019-09-29T22:01:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elcougario](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@elcougario](https://discourse.processing.org/u/elcougario)\
**Post date:** [September 29, 2019, 10:01pm UTC](https://discourse.processing.org/t/only-using-line-commands/14294/1 "2019-09-29T22:01:18Z")

</div>

Hey guys!

I’m new to this whole processing thing. I have a project for a class and we can only use the line command. I’m trying to duplicate what i’ve done on the left side of my window to the right to make it look kind of like an eye shape. But I’m having difficulties. I want it to be a mirror image of other. Any clues? thanks

Here is my code:

```auto
void setup() {
size (1200,900);
background(0);
smooth();
noLoop();
}

void draw() {
for (int i=0; i<width; i+=10)
{
  //Left side curve
  
    strokeWeight(0.5);
stroke(i/2,50,200);
line(0,i,i,height);
} 

//right side curve (the one thats not working)
for (int i=0; i<width; i=i+10)
{
pushMatrix();
strokeWeight(0.5);
stroke(i/2,50,200);
translate(width,-height);
line(0,i,i,height);
popMatrix();
}
}

```

Thanks for your help it would be much appreciated:)

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [September 30, 2019, 3:51am UTC](https://discourse.processing.org/t/only-using-line-commands/14294/2 "2019-09-30T03:51:54Z")

</div>

-a- please format your code with the  
`</> Preformatted text` button from the editor menu

-b- i like your colors and the mirror idea  
if that is what you wanted?

```auto
void setup() {
  size (1200, 900);
  background(0);
  strokeWeight(0.5);
  noLoop();
}

void draw() {
  for (int i=0; i<width; i+=10) {
    stroke(i/2, 50, 200);
    line(0, i, i, height);
    line(width, i, width-i, height);
  }
}

```
