# MinaCoding2024_Create

# LinedWorkingImagery

For the 7th day of #**MinaCoding2024 : "Create"** , **LinedWorkingImagery** is coded in ***P5JS*** shows numerous lines layered in a 3D perspective while they are working. Then later remixed with **Glitchlab** to create something else

## Poetry

```ocaml
Intersection of Lines
Their Transformation intertwines
Translating
Rotating
Elevating
Spectating
```

## Images

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717727831186/e649706d-2077-4e50-b539-4cb9cacc1a60.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717727836318/ab7f3bad-f58c-4ac6-acaf-cbc39244c833.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717727841891/1b0a0c67-4d8f-4210-b7bb-c26e40049189.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717727852913/86d0081f-5d54-4975-a786-bd64f912c837.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717727856437/5af9ab1a-313e-4547-8057-44b10fd54d5a.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717727860927/8b16e492-2bef-4878-9ef0-6cb533388b00.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717727863904/56c4579a-13c7-4100-b860-a26ccdfcce0a.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1717727871480/051fe65b-d386-441a-aaa3-3a7bd7063274.jpeg align="center")

## Original Video

<iframe width="560" height="315" src="https://www.youtube.com/embed/mLgOHgtlogw?si=wx3k6m2x2RqZOacr"></iframe>

## P5JS Code

```javascript
function setup() {
  createCanvas(800, 800);
}

function draw() {

//Line Color Scheme with StrokeWeight
  frameRate(45)
  background((second() % 20) * 12);
  for (i = 0; i < 800; i++) {
    if(i % 5 == 0)
{
  stroke("purple")
  strokeWeight(second() % 6 + 1)
}    
    else if (i % 3 == 0) {
      stroke("blue");
      strokeWeight(Math.cbrt(second()/ i))
    } else if (i % 2 == 0) {
      stroke("teal");
    } else {
      stroke("gold");
    }
//Lines
    line(i, i / 2 + second() % 12, (i * second()  %12), i / 3);
    line(i / 2, Math.cbrt(i * second() % 30) * 12, i / 3, i);

    line(i / 2, i / 3, i, Math.hypot(i, (second() % 30)/8));
    line(i + random(-2,2), i, i / 3, i / 2 * (random(-3,3)));
  }
}
```
