# Interesting "pattern"

**URL:** <https://discourse.processing.org/t/interesting-pattern/28170>\
**Category:** Gallery\
**Created:** [March 1, 2021, 4:51pm UTC](https://discourse.processing.org/t/interesting-pattern/28170 "2021-03-01T16:51:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Post date:** [March 1, 2021, 4:51pm UTC](https://discourse.processing.org/t/interesting-pattern/28170/1 "2021-03-01T16:51:31Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/058d926ec934d8af9e56fb5de7184b4eb502dbde.png)

> **Code**
>
> ```auto
> int r = 300;
> void setup() { size(600,600); }
> void draw() {
> background(0);
> noFill();
> stroke(255);
> for(float i = 0; i < 600; i+=0.1) {
> drawLine(i,300,cos(i/sqrt(300)*15*PI/3)*r);
> }
> stroke(255,0,0);
> circle(300,300,r*2);
> }
> void drawLine(float x,float y,float h) {
> line(x,y-h,x,y+h);
> }
> 
> ```
