Skip to content

Commit

Permalink
Merge pull request #4 from dipamsen/organise
Browse files Browse the repository at this point in the history
Basic submission system for variations
  • Loading branch information
shiffman authored Sep 27, 2023
2 parents b5e241c + 1e0b6a8 commit f84c194
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 94 deletions.
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Template for submission of remixed Coding Train Logo -->

## Variation

- **Title**:
- **Author**:
- **Link to code / output**:

<!-- add/paste the output image/gif/video here -->
39 changes: 37 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# Coding-Train-Logo
# Coding Train Logo

https://editor.p5js.org/codingtrain/sketches/p599bQ3sa
<p align="center"><img src="logo.png" alt="The Coding Train Logo" width="300px"></p>

- [p5.js Sketch](https://editor.p5js.org/codingtrain/sketches/p599bQ3sa)
- [Live Stream](https://www.youtube.com/watch?v=d6RXcetnl20)

This repo contains the p5.js sketch to generate the Coding Train Logo.

## Contributing

1. Using the hard-coded data points in the [p5 sketch](./sketch/), you can create your own variation of the Coding Train Logo and submit a pull request to this repo. Some ideas for variations include color, animation, and sound. For inspiration, check out all other contributions below.

Please add your variation below in the following format:

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

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.

```md
- [**Language**](./ports/[language]) _by Author_
```

## Variations

- [**Animated Logo**](https://editor.p5js.org/funplanet/sketches/8zZKqiyV4) _by Dipam Sen_ <br>
Animated the path of the logo by interpolating it using a cubic easing function.
<img src="variations/animated-logo-dipamsen.gif" alt="Animated Logo" width="300px">

## Ports

- [**Processing**](./ports/processing/) _by Kai Tabuchi_
- [**Processing.py**](./ports/processingpy/) _by Kai Tabuchi_
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
void setup() {
size(400, 400);
strokeWeight(2.9166);
strokeCap(ROUND);
strokeJoin(ROUND);
}

void draw() {
background(255);
scale(4);
stroke(112, 50, 126);
line(25.631, 44.613, 25.631, 34.251);
line(25.631, 34.251, 22.581, 34.251);
line(22.581, 34.251, 22.581, 27.926);
line(22.581, 27.926, 49.61, 27.926);
line(49.61, 27.926, 49.61, 39.409);

stroke(48, 197, 243);
line(57.015, 39.409, 55.198, 27.926);
line(55.198, 27.926, 68.114, 27.926);
line(68.114, 27.926, 66.298, 39.409);

stroke(239, 99, 164);
line(78.126, 66.499, 72.372, 59.146);
line(72.372, 59.146, 76.229, 48.65);
line(76.229, 48.65, 72.282, 39.409);

noFill();
stroke(112, 50, 126);
circle(35.104, 58.745, 13.23 * 2);

stroke(48, 197, 243);
strokeWeight(2.7978);
circle(55.298, 67.558, 4.516 * 2);

strokeWeight(2.7735);
circle(68.054, 67.597, 4.477 * 2);

stroke(248, 158, 79);
strokeWeight(2.9166);
line(66.68, 44.613, 66.68, 53.135);
line(61.656, 44.613, 61.656, 53.135);
line(56.632, 44.613, 56.632, 53.135);

line(68.005, 59.075, 55.308, 59.075);
}
void setup() {
size(400, 400);
strokeWeight(2.9166);
strokeCap(ROUND);
strokeJoin(ROUND);
}

void draw() {
background(255);
scale(4);
stroke(112, 50, 126);
line(25.631, 44.613, 25.631, 34.251);
line(25.631, 34.251, 22.581, 34.251);
line(22.581, 34.251, 22.581, 27.926);
line(22.581, 27.926, 49.61, 27.926);
line(49.61, 27.926, 49.61, 39.409);

stroke(48, 197, 243);
line(57.015, 39.409, 55.198, 27.926);
line(55.198, 27.926, 68.114, 27.926);
line(68.114, 27.926, 66.298, 39.409);

stroke(239, 99, 164);
line(78.126, 66.499, 72.372, 59.146);
line(72.372, 59.146, 76.229, 48.65);
line(76.229, 48.65, 72.282, 39.409);

noFill();
stroke(112, 50, 126);
circle(35.104, 58.745, 13.23 * 2);

stroke(48, 197, 243);
strokeWeight(2.7978);
circle(55.298, 67.558, 4.516 * 2);

strokeWeight(2.7735);
circle(68.054, 67.597, 4.477 * 2);

stroke(248, 158, 79);
strokeWeight(2.9166);
line(66.68, 44.613, 66.68, 53.135);
line(61.656, 44.613, 61.656, 53.135);
line(56.632, 44.613, 56.632, 53.135);

line(68.005, 59.075, 55.308, 59.075);
}
88 changes: 44 additions & 44 deletions processingpy_logo.pyde → ports/processingpy/sketch.pyde
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
def setup():
size(400, 400)
strokeWeight(2.9166)
strokeCap(ROUND)
strokeJoin(ROUND)

def draw():
background(255)
scale(4)
stroke(112, 50, 126)
line(25.631, 44.613, 25.631, 34.251)
line(25.631, 34.251, 22.581, 34.251)
line(22.581, 34.251, 22.581, 27.926)
line(22.581, 27.926, 49.61, 27.926)
line(49.61, 27.926, 49.61, 39.409)

stroke(48, 197, 243)
line(57.015, 39.409, 55.198, 27.926)
line(55.198, 27.926, 68.114, 27.926)
line(68.114, 27.926, 66.298, 39.409)

stroke(239, 99, 164)
line(78.126, 66.499, 72.372, 59.146)
line(72.372, 59.146, 76.229, 48.65)
line(76.229, 48.65, 72.282, 39.409)

noFill()
stroke(112, 50, 126)
circle(35.104, 58.745, 13.23 * 2)

stroke(48, 197, 243)
strokeWeight(2.7978)
circle(55.298, 67.558, 4.516 * 2)

strokeWeight(2.7735)
circle(68.054, 67.597, 4.477 * 2)

stroke(248, 158, 79)
strokeWeight(2.9166)
line(66.68, 44.613, 66.68, 53.135)
line(61.656, 44.613, 61.656, 53.135)
line(56.632, 44.613, 56.632, 53.135)

line(68.005, 59.075, 55.308, 59.075)
def setup():
size(400, 400)
strokeWeight(2.9166)
strokeCap(ROUND)
strokeJoin(ROUND)

def draw():
background(255)
scale(4)
stroke(112, 50, 126)
line(25.631, 44.613, 25.631, 34.251)
line(25.631, 34.251, 22.581, 34.251)
line(22.581, 34.251, 22.581, 27.926)
line(22.581, 27.926, 49.61, 27.926)
line(49.61, 27.926, 49.61, 39.409)

stroke(48, 197, 243)
line(57.015, 39.409, 55.198, 27.926)
line(55.198, 27.926, 68.114, 27.926)
line(68.114, 27.926, 66.298, 39.409)

stroke(239, 99, 164)
line(78.126, 66.499, 72.372, 59.146)
line(72.372, 59.146, 76.229, 48.65)
line(76.229, 48.65, 72.282, 39.409)

noFill()
stroke(112, 50, 126)
circle(35.104, 58.745, 13.23 * 2)

stroke(48, 197, 243)
strokeWeight(2.7978)
circle(55.298, 67.558, 4.516 * 2)

strokeWeight(2.7735)
circle(68.054, 67.597, 4.477 * 2)

stroke(248, 158, 79)
strokeWeight(2.9166)
line(66.68, 44.613, 66.68, 53.135)
line(61.656, 44.613, 61.656, 53.135)
line(56.632, 44.613, 56.632, 53.135)

line(68.005, 59.075, 55.308, 59.075)
File renamed without changes.
4 changes: 2 additions & 2 deletions sketch.js → sketch/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function setup() {

function draw() {
background(255);

strokeWeight(11.6);
stroke("#70327E");
line(103, 178, 103, 137);
Expand Down Expand Up @@ -42,6 +42,6 @@ function draw() {

line(272, 236, 221, 236);

//Remove to allow Animation
// Remove to allow Animation
noLoop();
}
File renamed without changes.
Binary file added variations/animated-logo-dipamsen.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f84c194

Please sign in to comment.