Skip to content

Commit 59435df

Browse files
author
Dipam Sen
committed
reorganise
1 parent 0131b98 commit 59435df

File tree

3 files changed

+96
-93
lines changed

3 files changed

+96
-93
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ This repo contains the p5.js sketch to generate the Coding Train Logo.
1414
Please add your variation below in the following format:
1515

1616
```md
17-
- **Title** _by Author_ ([Open](link-to-sketch)) <br>
17+
- [**Title**](link-to-sketch) _by Author_ <br>
1818
Description (optional)
19-
<!-- Screenshot / GIF / Video (add image files in `variations/`) -->
19+
<!-- Screenshot / GIF / Video (add image files in `variations/`, optional) -->
2020
<img src="variations/your-variation-author.png" alt="Your Variation" width="300px">
2121
```
2222

2323
2. Port the sketch to another language or framework! You can add your port inside a directory `ports/[language]/` where `[language]` is the name of the language or framework (eg. `processing`), and add it to the list below.
2424

2525
```md
26-
- **Language** _by Author_ ([Open](./ports/[lang]))
26+
- [**Language**](./ports/[language]) _by Author_
2727
```
2828

2929
## Variations
@@ -33,3 +33,6 @@ This repo contains the p5.js sketch to generate the Coding Train Logo.
3333
<img src="variations/animated-logo-dipamsen.gif" alt="Animated Logo" width="300px">
3434

3535
## Ports
36+
37+
- [**Processing**](./ports/processing/) _by Kai Tabuchi_
38+
- [**Processing.py**](./ports/processingpy/) _by Kai Tabuchi_
Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
void setup() {
2-
size(400, 400);
3-
strokeWeight(2.9166);
4-
strokeCap(ROUND);
5-
strokeJoin(ROUND);
6-
}
7-
8-
void draw() {
9-
background(255);
10-
scale(4);
11-
stroke(112, 50, 126);
12-
line(25.631, 44.613, 25.631, 34.251);
13-
line(25.631, 34.251, 22.581, 34.251);
14-
line(22.581, 34.251, 22.581, 27.926);
15-
line(22.581, 27.926, 49.61, 27.926);
16-
line(49.61, 27.926, 49.61, 39.409);
17-
18-
stroke(48, 197, 243);
19-
line(57.015, 39.409, 55.198, 27.926);
20-
line(55.198, 27.926, 68.114, 27.926);
21-
line(68.114, 27.926, 66.298, 39.409);
22-
23-
stroke(239, 99, 164);
24-
line(78.126, 66.499, 72.372, 59.146);
25-
line(72.372, 59.146, 76.229, 48.65);
26-
line(76.229, 48.65, 72.282, 39.409);
27-
28-
noFill();
29-
stroke(112, 50, 126);
30-
circle(35.104, 58.745, 13.23 * 2);
31-
32-
stroke(48, 197, 243);
33-
strokeWeight(2.7978);
34-
circle(55.298, 67.558, 4.516 * 2);
35-
36-
strokeWeight(2.7735);
37-
circle(68.054, 67.597, 4.477 * 2);
38-
39-
stroke(248, 158, 79);
40-
strokeWeight(2.9166);
41-
line(66.68, 44.613, 66.68, 53.135);
42-
line(61.656, 44.613, 61.656, 53.135);
43-
line(56.632, 44.613, 56.632, 53.135);
44-
45-
line(68.005, 59.075, 55.308, 59.075);
46-
}
1+
void setup() {
2+
size(400, 400);
3+
strokeWeight(2.9166);
4+
strokeCap(ROUND);
5+
strokeJoin(ROUND);
6+
}
7+
8+
void draw() {
9+
background(255);
10+
scale(4);
11+
stroke(112, 50, 126);
12+
line(25.631, 44.613, 25.631, 34.251);
13+
line(25.631, 34.251, 22.581, 34.251);
14+
line(22.581, 34.251, 22.581, 27.926);
15+
line(22.581, 27.926, 49.61, 27.926);
16+
line(49.61, 27.926, 49.61, 39.409);
17+
18+
stroke(48, 197, 243);
19+
line(57.015, 39.409, 55.198, 27.926);
20+
line(55.198, 27.926, 68.114, 27.926);
21+
line(68.114, 27.926, 66.298, 39.409);
22+
23+
stroke(239, 99, 164);
24+
line(78.126, 66.499, 72.372, 59.146);
25+
line(72.372, 59.146, 76.229, 48.65);
26+
line(76.229, 48.65, 72.282, 39.409);
27+
28+
noFill();
29+
stroke(112, 50, 126);
30+
circle(35.104, 58.745, 13.23 * 2);
31+
32+
stroke(48, 197, 243);
33+
strokeWeight(2.7978);
34+
circle(55.298, 67.558, 4.516 * 2);
35+
36+
strokeWeight(2.7735);
37+
circle(68.054, 67.597, 4.477 * 2);
38+
39+
stroke(248, 158, 79);
40+
strokeWeight(2.9166);
41+
line(66.68, 44.613, 66.68, 53.135);
42+
line(61.656, 44.613, 61.656, 53.135);
43+
line(56.632, 44.613, 56.632, 53.135);
44+
45+
line(68.005, 59.075, 55.308, 59.075);
46+
}
Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
def setup():
2-
size(400, 400)
3-
strokeWeight(2.9166)
4-
strokeCap(ROUND)
5-
strokeJoin(ROUND)
6-
7-
def draw():
8-
background(255)
9-
scale(4)
10-
stroke(112, 50, 126)
11-
line(25.631, 44.613, 25.631, 34.251)
12-
line(25.631, 34.251, 22.581, 34.251)
13-
line(22.581, 34.251, 22.581, 27.926)
14-
line(22.581, 27.926, 49.61, 27.926)
15-
line(49.61, 27.926, 49.61, 39.409)
16-
17-
stroke(48, 197, 243)
18-
line(57.015, 39.409, 55.198, 27.926)
19-
line(55.198, 27.926, 68.114, 27.926)
20-
line(68.114, 27.926, 66.298, 39.409)
21-
22-
stroke(239, 99, 164)
23-
line(78.126, 66.499, 72.372, 59.146)
24-
line(72.372, 59.146, 76.229, 48.65)
25-
line(76.229, 48.65, 72.282, 39.409)
26-
27-
noFill()
28-
stroke(112, 50, 126)
29-
circle(35.104, 58.745, 13.23 * 2)
30-
31-
stroke(48, 197, 243)
32-
strokeWeight(2.7978)
33-
circle(55.298, 67.558, 4.516 * 2)
34-
35-
strokeWeight(2.7735)
36-
circle(68.054, 67.597, 4.477 * 2)
37-
38-
stroke(248, 158, 79)
39-
strokeWeight(2.9166)
40-
line(66.68, 44.613, 66.68, 53.135)
41-
line(61.656, 44.613, 61.656, 53.135)
42-
line(56.632, 44.613, 56.632, 53.135)
43-
44-
line(68.005, 59.075, 55.308, 59.075)
1+
def setup():
2+
size(400, 400)
3+
strokeWeight(2.9166)
4+
strokeCap(ROUND)
5+
strokeJoin(ROUND)
6+
7+
def draw():
8+
background(255)
9+
scale(4)
10+
stroke(112, 50, 126)
11+
line(25.631, 44.613, 25.631, 34.251)
12+
line(25.631, 34.251, 22.581, 34.251)
13+
line(22.581, 34.251, 22.581, 27.926)
14+
line(22.581, 27.926, 49.61, 27.926)
15+
line(49.61, 27.926, 49.61, 39.409)
16+
17+
stroke(48, 197, 243)
18+
line(57.015, 39.409, 55.198, 27.926)
19+
line(55.198, 27.926, 68.114, 27.926)
20+
line(68.114, 27.926, 66.298, 39.409)
21+
22+
stroke(239, 99, 164)
23+
line(78.126, 66.499, 72.372, 59.146)
24+
line(72.372, 59.146, 76.229, 48.65)
25+
line(76.229, 48.65, 72.282, 39.409)
26+
27+
noFill()
28+
stroke(112, 50, 126)
29+
circle(35.104, 58.745, 13.23 * 2)
30+
31+
stroke(48, 197, 243)
32+
strokeWeight(2.7978)
33+
circle(55.298, 67.558, 4.516 * 2)
34+
35+
strokeWeight(2.7735)
36+
circle(68.054, 67.597, 4.477 * 2)
37+
38+
stroke(248, 158, 79)
39+
strokeWeight(2.9166)
40+
line(66.68, 44.613, 66.68, 53.135)
41+
line(61.656, 44.613, 61.656, 53.135)
42+
line(56.632, 44.613, 56.632, 53.135)
43+
44+
line(68.005, 59.075, 55.308, 59.075)

0 commit comments

Comments
 (0)