# Can someone help explain this to me?

**URL:** <https://discourse.processing.org/t/can-someone-help-explain-this-to-me/14563>\
**Category:** Coding Questions\
**Created:** [October 10, 2019, 1:40am UTC](https://discourse.processing.org/t/can-someone-help-explain-this-to-me/14563 "2019-10-10T01:40:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![isaacpowwow](https://avatars.discourse-cdn.com/v4/letter/i/a8b319/32.png) [@isaacpowwow](https://discourse.processing.org/u/isaacpowwow)\
**Post date:** [October 10, 2019, 1:40am UTC](https://discourse.processing.org/t/can-someone-help-explain-this-to-me/14563/1 "2019-10-10T01:40:27Z")

</div>

```auto
void draw(){
 stroke(8,65,92); 
 float steps29 = 1026.4 ;
 int distance29 = 670 ;
 int floors = 48;
 float pointAngle = 360.0/floors;
 int radius = 670;
strokeWeight(1.5);
for (float angle = 0; angle < 360.0; angle = angle+pointAngle) { 
   float x = cos(radians(angle)) * radius; 
   float y = sin(radians(angle)) * radius;
   line(x + distance29, y + steps29, 0 + steps29 , 0 + distance29); 
 }

```

---

<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:** [October 10, 2019, 2:12am UTC](https://discourse.processing.org/t/can-someone-help-explain-this-to-me/14563/2 "2019-10-10T02:12:54Z")

</div>

hi, where you find that?

first you need to learn how to post code here at the forum,  
-a- it should be running ( complete ) code what can be copy pasted to PDE

-b- it should be formatted, in PDE using [ctrl][t]  
here using the `</> Preformatted text ` button from the forum editor

* * *

for a beginner also use short examples from  
[https://processing.org/reference/](https://processing.org/reference/)  
or examples or tutorials  
not like that.

* * *

i rewrite it to a ?similar? but readable and functional code

```auto
int floors = 60;
float pointAngle = 360.0/floors;
float x, y,radius = 100, off = 0; // later play with different off settings

void setup() {
  size(300, 300);
  stroke(0, 0, 100);
  strokeWeight(2);
}

void draw() {
  background(200, 200, 0);
  translate(width/2, height/2);
  for (float angle = 0; angle < 360.0; angle += pointAngle) {
    x = cos(radians(angle)) * radius;
    y = sin(radians(angle)) * radius;
    line(x/2, y/2+off, x+off, y);
  }
}

```

now you try again to understand
