Skip to content

Commit e957887

Browse files
committed
Enforce 2 space indentation everywhere
1 parent f553f03 commit e957887

File tree

183 files changed

+1686
-1658
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+1686
-1658
lines changed

_CodingChallenges/001-starfield.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ video_id: 17WoOqgXsRM
77
repository: /CC_001_StarField
88
live_example: /CC_001_StarField_p5.js
99
links:
10-
- title: "Code inspired by CS Department of Bryn Mawr College"
11-
url: "https://cs.brynmawr.edu/gxk2013/examples/transformations/starfield/"
10+
- title: "Code inspired by CS Department of Bryn Mawr College"
11+
url: "https://cs.brynmawr.edu/gxk2013/examples/transformations/starfield/"
1212

1313
contributions:
1414
- title: "Swifty Starfield"

_CodingChallenges/002-mengersponge.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ repository: /CC_002_MengerSponge
88
live_example: /CC_002_MengerSponge_p5.js
99

1010
links:
11-
- title: "Menger Sponge on Wikipedia"
12-
url: "https://en.wikipedia.org/wiki/Menger_sponge"
13-
- title: "P3D Tutorial"
14-
author: "Daniel Shiffman"
15-
url: "https://processing.org/tutorials/p3d/"
16-
- title: "ArrayList in Processing"
17-
url: "https://processing.org/reference/ArrayList.html"
11+
- title: "Menger Sponge on Wikipedia"
12+
url: "https://en.wikipedia.org/wiki/Menger_sponge"
13+
- title: "P3D Tutorial"
14+
author: "Daniel Shiffman"
15+
url: "https://processing.org/tutorials/p3d/"
16+
- title: "ArrayList in Processing"
17+
url: "https://processing.org/reference/ArrayList.html"
1818

1919
contributions:
2020
- title: "Swifty Menger sponge"

_CodingChallenges/007-solarsystemgenerator.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ repository: /CC_007_SolarSystemGenerator
88
live_example: /CC_007_SolarSystemGenerator_p5.js
99

1010
videos:
11-
- title: "My Video about Gravitational Attraction"
12-
video_id: "fML1KpvvQTc"
11+
- title: "My Video about Gravitational Attraction"
12+
video_id: "fML1KpvvQTc"
1313

1414
parts:
15-
- title: "Solar System in Processing - Part 2 (3D)"
16-
url: "/CodingChallenges/008-solarsystemgenerator3d"
17-
- title: "Solar System in Processing - Part 3 (3D textures)"
18-
url: "/CodingChallenges/009-solarsystemgenerator3d-texture"
15+
- title: "Solar System in Processing - Part 2 (3D)"
16+
url: "/CodingChallenges/008-solarsystemgenerator3d"
17+
- title: "Solar System in Processing - Part 3 (3D textures)"
18+
url: "/CodingChallenges/009-solarsystemgenerator3d-texture"
1919
---
2020

2121
In this viewer submitted coding challenge, I make a 2D Solar System Generator in Processing.

_CodingChallenges/008-solarsystemgenerator3d.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ video_id: dncudkelNxw
77
repository: /CC_008_SolarSystemGenerator3D
88
live_example: false
99
links:
10-
- title: "PeasyCam library"
11-
url: "http://mrfeinberg.com/peasycam/"
12-
author: "Jonathan Feinberg"
10+
- title: "PeasyCam library"
11+
url: "http://mrfeinberg.com/peasycam/"
12+
author: "Jonathan Feinberg"
1313

1414
parts:
15-
- title: "Solar System in Processing - Part 1 (2D)"
16-
url: "/CodingChallenges/007-solarsystemgenerator"
17-
- title: "Solar System in Processing - Part 3 (3D textures)"
18-
url: "/CodingChallenges/009-solarsystemgenerator3d-texture"
15+
- title: "Solar System in Processing - Part 1 (2D)"
16+
url: "/CodingChallenges/007-solarsystemgenerator"
17+
- title: "Solar System in Processing - Part 3 (3D textures)"
18+
url: "/CodingChallenges/009-solarsystemgenerator3d-texture"
1919
---
2020

2121
In the second part of this coding challenge, using Processing, I take the code from the [2D Solar System (Part 1)](https://youtu.be/l8SiJ-RmeHU) and turn it three-dimensional.

_CodingChallenges/009-solarsystemgenerator3d-texture.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ video_id: FGAwi7wpU8c
77
repository: /CC_009_SolarSystemGenerator3D_texture
88
live_example: false
99
links:
10-
- title: "PeasyCam library"
11-
url: "http://mrfeinberg.com/peasycam/"
12-
author: "Jonathan Feinberg"
13-
- title: "Planet texture maps"
14-
url: "http://planetpixelemporium.com"
10+
- title: "PeasyCam library"
11+
url: "http://mrfeinberg.com/peasycam/"
12+
author: "Jonathan Feinberg"
13+
- title: "Planet texture maps"
14+
url: "http://planetpixelemporium.com"
1515

1616
parts:
17-
- title: "Solar System in Processing - Part 1 (2D)"
18-
url: "/CodingChallenges/007-solarsystemgenerator"
19-
- title: "Solar System in Processing - Part 2 (3D)"
20-
url: "/CodingChallenges/008-solarsystemgenerator3d"
17+
- title: "Solar System in Processing - Part 1 (2D)"
18+
url: "/CodingChallenges/007-solarsystemgenerator"
19+
- title: "Solar System in Processing - Part 2 (3D)"
20+
url: "/CodingChallenges/008-solarsystemgenerator3d"
2121
---
2222

2323
In part 3 of this coding challenge, using Processing, I add texture to the 3D objects created in [part 2](https://youtu.be/dncudkelNxw). The PShape class and createShape() functions are covered.

_CodingChallenges/010.1-maze-dfs-p5.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ date: 2016-05-03
66
video_id: HyK_Q5rrcr4
77
repository: /CC_010_Maze_DFS_p5.js
88
links:
9-
- title: "Algorithm for Maze Generators on Wikipedia"
10-
url: "https://en.wikipedia.org/wiki/Maze_generation_algorithm#Recursive_backtracker"
9+
- title: "Algorithm for Maze Generators on Wikipedia"
10+
url: "https://en.wikipedia.org/wiki/Maze_generation_algorithm#Recursive_backtracker"
1111

1212
parts:
13-
- title: "Maze Generator with p5.js - Part 2"
14-
url: "/CodingChallenges/010.2-maze-dfs-p5"
15-
- title: "Maze Generator with p5.js - Part 3"
16-
url: "/CodingChallenges/010.3-maze-dfs-p5"
17-
- title: "Maze Generator with p5.js - Part 4"
18-
url: "/CodingChallenges/010.4-maze-dfs-p5"
13+
- title: "Maze Generator with p5.js - Part 2"
14+
url: "/CodingChallenges/010.2-maze-dfs-p5"
15+
- title: "Maze Generator with p5.js - Part 3"
16+
url: "/CodingChallenges/010.3-maze-dfs-p5"
17+
- title: "Maze Generator with p5.js - Part 4"
18+
url: "/CodingChallenges/010.4-maze-dfs-p5"
1919

2020
contributions:
2121
- title: "Maze generator from all four corners of the canvas"

_CodingChallenges/010.2-maze-dfs-p5.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ date: 2016-05-03
66
video_id: D8UgRyRnvXU
77
repository: /CC_010_Maze_DFS_p5.js
88
links:
9-
- title: "Algorithm for Maze Generators on Wikipedia"
10-
url: "https://en.wikipedia.org/wiki/Maze_generation_algorithm#Recursive_backtracker"
9+
- title: "Algorithm for Maze Generators on Wikipedia"
10+
url: "https://en.wikipedia.org/wiki/Maze_generation_algorithm#Recursive_backtracker"
1111

1212
parts:
13-
- title: "Maze Generator with p5.js - Part 1"
14-
url: "/CodingChallenges/010.1-maze-dfs-p5"
15-
- title: "Maze Generator with p5.js - Part 3"
16-
url: "/CodingChallenges/010.3-maze-dfs-p5"
17-
- title: "Maze Generator with p5.js - Part 4"
18-
url: "/CodingChallenges/010.4-maze-dfs-p5"
13+
- title: "Maze Generator with p5.js - Part 1"
14+
url: "/CodingChallenges/010.1-maze-dfs-p5"
15+
- title: "Maze Generator with p5.js - Part 3"
16+
url: "/CodingChallenges/010.3-maze-dfs-p5"
17+
- title: "Maze Generator with p5.js - Part 4"
18+
url: "/CodingChallenges/010.4-maze-dfs-p5"
1919
---
2020

2121
In the second part of this coding challenge, using p5.js, I move through the grid created in Part 1 by evaluating which neighbouring cell will be the next one to be visited.

_CodingChallenges/010.3-maze-dfs-p5.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ date: 2016-05-03
66
video_id: 8Ju_uxJ9v44
77
repository: /CC_010_Maze_DFS_p5.js
88
links:
9-
- title: "Algorithm for Maze Generators on Wikipedia"
10-
url: "https://en.wikipedia.org/wiki/Maze_generation_algorithm#Recursive_backtracker"
9+
- title: "Algorithm for Maze Generators on Wikipedia"
10+
url: "https://en.wikipedia.org/wiki/Maze_generation_algorithm#Recursive_backtracker"
1111

1212
parts:
13-
- title: "Maze Generator with p5.js - Part 1"
14-
url: "/CodingChallenges/010.1-maze-dfs-p5"
15-
- title: "Maze Generator with p5.js - Part 2"
16-
url: "/CodingChallenges/010.2-maze-dfs-p5"
17-
- title: "Maze Generator with p5.js - Part 4"
18-
url: "/CodingChallenges/010.4-maze-dfs-p5"
13+
- title: "Maze Generator with p5.js - Part 1"
14+
url: "/CodingChallenges/010.1-maze-dfs-p5"
15+
- title: "Maze Generator with p5.js - Part 2"
16+
url: "/CodingChallenges/010.2-maze-dfs-p5"
17+
- title: "Maze Generator with p5.js - Part 4"
18+
url: "/CodingChallenges/010.4-maze-dfs-p5"
1919
---
2020

2121
In part 3 of the Maze Generator challenge, using p5.js, I cover steps 3 and 4 of the recursive backtracker algorithm to generate a maze: Removing walls and marking current cell as visited.

_CodingChallenges/010.4-maze-dfs-p5.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ date: 2016-05-03
66
video_id: _p5IH0L63wo
77
repository: /CC_010_Maze_DFS_p5.js
88
links:
9-
- title: "Algorithm for Maze Generators on Wikipedia"
10-
url: "https://en.wikipedia.org/wiki/Maze_generation_algorithm#Recursive_backtracker"
9+
- title: "Algorithm for Maze Generators on Wikipedia"
10+
url: "https://en.wikipedia.org/wiki/Maze_generation_algorithm#Recursive_backtracker"
1111

1212
parts:
13-
- title: "Maze Generator with p5.js - Part 1"
14-
url: "/CodingChallenges/010.1-maze-dfs-p5"
15-
- title: "Maze Generator with p5.js - Part 2"
16-
url: "/CodingChallenges/010.2-maze-dfs-p5"
17-
- title: "Maze Generator with p5.js - Part 3"
18-
url: "/CodingChallenges/010.3-maze-dfs-p5"
13+
- title: "Maze Generator with p5.js - Part 1"
14+
url: "/CodingChallenges/010.1-maze-dfs-p5"
15+
- title: "Maze Generator with p5.js - Part 2"
16+
url: "/CodingChallenges/010.2-maze-dfs-p5"
17+
- title: "Maze Generator with p5.js - Part 3"
18+
url: "/CodingChallenges/010.3-maze-dfs-p5"
1919
---
2020

2121
In the final part of the Maze Generator challenge, using p5.js, I cover the concept of a "stack" and how it's going to help us generate a maze using the Depth-First Search Recursive algorithm

_CodingChallenges/011-perlinnoiseterrain.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ video_id: IKB1hWWedMk
77
repository: /CC_011_PerlinNoiseTerrain
88
live_example: /CC_011_PerlinNoiseTerrain_p5.js
99
links:
10-
- title: "beginShape() reference"
11-
url: "https://processing.org/reference/beginShape_.html"
12-
- title: "noise() reference"
13-
url: "https://processing.org/reference/noise_.html"
10+
- title: "beginShape() reference"
11+
url: "https://processing.org/reference/beginShape_.html"
12+
- title: "noise() reference"
13+
url: "https://processing.org/reference/noise_.html"
1414
videos:
15-
- title: "My Video on Perlin Noise"
16-
video_id: "8ZEMLCnn8v0"
15+
- title: "My Video on Perlin Noise"
16+
video_id: "8ZEMLCnn8v0"
1717
---
1818

1919
In this coding challenge, I create a 3D procedural terrain using Perlin Noise and the beginShape() function in Processing.

_CodingChallenges/012-lorenzattractor.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ video_id: f0lkz2gSsIk
77
repository: /CC_012_LorenzAttractor
88
live_example: /CC_012_LorenzAttractor_p5.js
99
links:
10-
- title: "PeasyCam library"
11-
url: "http://mrfeinberg.com/peasycam/"
12-
author: "Jonathan Feinberg"
13-
- title: "Lorenz System on Wikipedia"
14-
url: "https://en.wikipedia.org/wiki/Lorenz_system"
15-
- title: "Lorenz Attractor"
16-
url: http://paulbourke.net/fractals/lorenz/"
17-
author: "Paul Bourke"
18-
- title: "beginShape() reference"
19-
url: "https://processing.org/reference/beginShape_.html"
20-
- title: "What is a differential equation?"
21-
url: "https://www.myphysicslab.com/explain/what-is-a-diff-eq-en.html"
10+
- title: "PeasyCam library"
11+
url: "http://mrfeinberg.com/peasycam/"
12+
author: "Jonathan Feinberg"
13+
- title: "Lorenz System on Wikipedia"
14+
url: "https://en.wikipedia.org/wiki/Lorenz_system"
15+
- title: "Lorenz Attractor"
16+
url: http://paulbourke.net/fractals/lorenz/"
17+
author: "Paul Bourke"
18+
- title: "beginShape() reference"
19+
url: "https://processing.org/reference/beginShape_.html"
20+
- title: "What is a differential equation?"
21+
url: "https://www.myphysicslab.com/explain/what-is-a-diff-eq-en.html"
2222
---
2323

2424
In this coding challenge, I show you how to visualization the Lorenz Attractor in Processing (Java).

_CodingChallenges/013-reactiondiffusion-p5.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ date: 2016-05-26
66
video_id: BV9ny785UNc
77
repository: /CC_013_ReactionDiffusion_p5.js
88
links:
9-
- title: "Karl Sims' Reaction Diffusion Tutorial"
10-
url: "http://karlsims.com/rd.html"
11-
- title: "2D Array Tutorial"
12-
url: "https://processing.org/tutorials/2darray/"
9+
- title: "Karl Sims' Reaction Diffusion Tutorial"
10+
url: "http://karlsims.com/rd.html"
11+
- title: "2D Array Tutorial"
12+
url: "https://processing.org/tutorials/2darray/"
1313
---
1414

1515
In this coding challenge, I use the p5.js library to make a visual representation of the Reaction Diffusion Algorithm.

_CodingChallenges/014-fractaltree.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ date: 2016-05-30
66
video_id: 0jjeOYMjmDU
77
repository: CC_014_FractalTree
88
links:
9-
- title: "Algorithmic Botany"
10-
url: "http://algorithmicbotany.org/"
9+
- title: "Algorithmic Botany"
10+
url: "http://algorithmicbotany.org/"
1111

1212
contributions:
1313
- title: "Animated Fractral tree on Codepen using P5.JS"

_CodingChallenges/015-fractaltreearray.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ date: 2016-05-30
66
video_id: fcdNSZ9IzJM
77
repository: CC_015_FractalTreeArray
88
links:
9-
- title: "Algorithmic Botany"
10-
url: "http://algorithmicbotany.org/"
9+
- title: "Algorithmic Botany"
10+
url: "http://algorithmicbotany.org/"
1111
---
1212

1313
In this coding challenge, I continue the topic of algorithmic botany with another way of generating a tree. With this method, every part of the tree will be an object, so that we can apply forces and attributes to each element

_CodingChallenges/016-lsystem.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ date: 2016-05-31
66
video_id: E1B4UoSQMFw
77
repository: /CC_016_LSystem
88
links:
9-
- title: "Algorithmic Botany"
10-
url: "http://algorithmicbotany.org/"
9+
- title: "Algorithmic Botany"
10+
url: "http://algorithmicbotany.org/"
1111
---
1212

1313
In this third installment of my series on algorithmic botany, I discuss L-systems and how they can be used to generate tree and other fractal patterns in p5.js.

_CodingChallenges/017-spacecolonizer.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ date: 2016-06-01
66
video_id: kKT0v3qhIQY
77
repository: /CC_017_SpaceColonizer
88
links:
9-
- title: "Algorithmic Botany"
10-
url: "http://algorithmicbotany.org/"
11-
- title: "Space Colonization Algorithm"
12-
url: "http://algorithmicbotany.org/papers/colonization.egwnp2007.html"
9+
- title: "Algorithmic Botany"
10+
url: "http://algorithmicbotany.org/"
11+
- title: "Space Colonization Algorithm"
12+
url: "http://algorithmicbotany.org/papers/colonization.egwnp2007.html"
1313

1414
contributions:
1515
- title: "Sakura Blossoms"

_CodingChallenges/018-spacecolonizer3d.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ video_id: JcopTKXt8L8
77
repository: /CC_018_SpaceColonizer3D
88
live_example: false
99
links:
10-
- title: "Algorithmic Botany"
11-
url: "http://algorithmicbotany.org/"
12-
- title: "Space Colonization Algorithm"
13-
url: "http://algorithmicbotany.org/papers/colonization.egwnp2007.html"
10+
- title: "Algorithmic Botany"
11+
url: "http://algorithmicbotany.org/"
12+
- title: "Space Colonization Algorithm"
13+
url: "http://algorithmicbotany.org/papers/colonization.egwnp2007.html"
1414
---
1515

1616
In this coding challenge, I'm building on top of the [Space Colonization video](https://youtu.be/kKT0v3qhIQY) and creating a 3D Fractal Tree, using the same algorithm, in Processing

_CodingChallenges/020-cloth3d.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ video_id: jrk_lOg_pVA
77
repository: /CC_020_Cloth3D
88
live_example: false
99
links:
10-
- title: "Toxiclibs Physics Library"
11-
url: "http://toxiclibs.org/"
10+
- title: "Toxiclibs Physics Library"
11+
url: "http://toxiclibs.org/"
1212
---
1313

1414
In this coding challenge, I use the toxiclibs physics library to create a 3D cloth in Processing.

_CodingChallenges/021-mandelbrot-p5.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ date: 2016-06-13
66
video_id: 6z7GQewK-Ks
77
repository: /CC_021_Mandelbrot_p5.js
88
links:
9-
- title: "Wikipedia on Mandelbrot Set"
10-
url: "https://en.wikipedia.org/wiki/Mandelbrot_set"
11-
- title: "Mandelbrot Set Explorer"
12-
url: "https://meiamso.me/old/mandelbrot/mandelbrot.php"
9+
- title: "Wikipedia on Mandelbrot Set"
10+
url: "https://en.wikipedia.org/wiki/Mandelbrot_set"
11+
- title: "Mandelbrot Set Explorer"
12+
url: "https://meiamso.me/old/mandelbrot/mandelbrot.php"
1313
---
1414

1515
In this coding challenge, I program from scratch the Mandelbrot set with p5.js

_CodingChallenges/022-juliaset.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ video_id: fAsaSkmbF5s
77
repository: /CC_022_JuliaSet
88
live_example: false
99
links:
10-
- title: "Wikipedia on Julia Set"
11-
url: "https://en.wikipedia.org/wiki/Julia_set"
12-
- title: "Julia Set page"
13-
url: "http://paulbourke.net/fractals/juliaset/"
14-
author: "Paul Bourke"
10+
- title: "Wikipedia on Julia Set"
11+
url: "https://en.wikipedia.org/wiki/Julia_set"
12+
- title: "Julia Set page"
13+
url: "http://paulbourke.net/fractals/juliaset/"
14+
author: "Paul Bourke"
1515
---
1616

1717
In this coding challenge, I program from the Julia Set fractal in Processing (Java).

_CodingChallenges/023-supershape2d.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ date: 2016-06-21
66
video_id: ksRoh-10lak
77
repository: /CC_023_SuperShape2D
88
links:
9-
- title: "Supershapes (Superformula)"
10-
url: "http://paulbourke.net/geometry/supershape/"
11-
author: "Paul Bourke"
9+
- title: "Supershapes (Superformula)"
10+
url: "http://paulbourke.net/geometry/supershape/"
11+
author: "Paul Bourke"
1212
---
1313

1414
In this coding challenge, I show you how to make 2D supershapes in p5.js.

_CodingChallenges/024-perlinnoiseflowfield.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ date: 2016-06-27
66
video_id: BjoM9oKOAKY
77
repository: /CC_024_PerlinNoiseFlowField
88
links:
9-
- title: "p5.js noise() reference"
10-
url: "https://p5js.org/reference/#/p5/noise"
9+
- title: "p5.js noise() reference"
10+
url: "https://p5js.org/reference/#/p5/noise"
1111

1212
contributions:
1313
- title: "Interactive Perlin Noise Flow Field"

0 commit comments

Comments
 (0)