CodingTrain / CodingTrain/Suggestion-Box

[EQC]: Alternatives to draw Circle using Geometric Mean method with P5JS - [GM]

Open
#1,150 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

# @shiffman
## Dear God :santa: and Dear Goddess :mrs_claus:
## Merry Christmas and Happy New 2019 Year to You!
### Good morning, Dear Magnum Magnus Magnificus Friend, Daniel.

![image](https://user-images.githubusercontent.com/752763/50340481-c8a8a300-0523-11e9-945e-f02302058e84.png)

Let me please share with You the presentation I did with some experiments
regarding drawing a circle with Geometric Mean method using P5JS.

__Note: Clicking on image below will open a video on YouToBee.__
[![](https://img.youtube.com/vi/q6uvFf6RTp0/maxresdefault.jpg)](https://www.youtube.com/watch?v=q6uvFf6RTp0)

> P5JS draw Circle with Balerina Kira Lebedeva - https://photos.app.goo.gl/7sdtpCgwC2YPaoNx8
> ### Make Yourself comfortable (I listen Daniel on classical music background):
> - Mozart Classical Music for Studying, Concentration, Relaxation | Study Music | Piano Instrumental - YouTube http://youtu.be/VB6SIKl8Md0
> - Processing Foundation Holiday Telethon - YouTube https://youtu.be/WACLmPBxMaw?t=6987

:santa: :mrs_claus: - https://ggbm.at/rwteve3v


![image](https://user-images.githubusercontent.com/752763/50335025-bb36ed00-0512-11e9-8c41-b5927704bdcb.png)
![image](https://user-images.githubusercontent.com/752763/50335294-80818480-0513-11e9-8d5c-107931f328aa.png)
![image](https://user-images.githubusercontent.com/752763/50345247-0a8f1480-0537-11e9-9c38-b7bc10439af2.png)
![image](https://user-images.githubusercontent.com/752763/50345520-15967480-0538-11e9-9df1-afcc6b16bd4f.png)
![image](https://user-images.githubusercontent.com/752763/50336253-59788200-0516-11e9-9ac0-e22982234702.png)
![image](https://user-images.githubusercontent.com/752763/50348176-a709e480-0540-11e9-90a1-7c321f262b8e.png)

```js
function setup() {
createCanvas(windowWidth, windowHeight);
}

function draw() {
background(75);

var R = height/3;
var p = 7;
var n = Math.pow(10, p);

var sumH = 0;
for(var i=1; i<=n; i=i+1){
H = sqrt(i*(n-i));
sumH = sumH + H;
}

var good = 'yellow';
stroke(good);
fill(good);

textSize(24);
text('0 : ' + PI, width/2, height/2 - textSize());
text('1 : ' + 8*sumH/Math.pow(n, 2), width/2, height/2);
noLoop();
}
```

### Below is the formula of the idea
![image](https://user-images.githubusercontent.com/752763/50334697-c0e00300-0511-11e9-9dce-721f59521738.png)
![image](https://user-images.githubusercontent.com/752763/50115196-5b5cef80-024f-11e9-9889-d00905773050.png)

- Circle Area with compensate rectangles http://tinyurl.com/yav8epzn
- Circle with Dots (from vertex) http://tinyurl.com/y9h44vyv
- Circle with Vertex http://tinyurl.com/y8z4xhb7
- Circle Disk with Vertex http://tinyurl.com/y9py7nck
- Circle with Dots http://tinyurl.com/y7c5ntsp
- Circle with Lines http://tinyurl.com/y962p9th

![image](https://user-images.githubusercontent.com/752763/50116360-990f4780-0252-11e9-89e1-f99600e24be5.png)
![workspace 1_999 900](https://user-images.githubusercontent.com/752763/50114418-25b70700-024d-11e9-849f-e660e9b5fad6.png)
![workspace 1_999 901](https://user-images.githubusercontent.com/752763/50114410-2059bc80-024d-11e9-9cc4-4db40faa87c8.png)
![workspace 1_999 898](https://user-images.githubusercontent.com/752763/50114437-30719c00-024d-11e9-8602-05a504b75115.png)
![workspace 1_999 897](https://user-images.githubusercontent.com/752763/50114449-35365000-024d-11e9-84be-c100540b65e2.png)
![workspace 1_999 899](https://user-images.githubusercontent.com/752763/50114577-86464400-024d-11e9-8896-04be0e5431d0.png)

# Notes:
EQC - stand for EnQuantum Continuum
GM - stand for Graphical Method

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.