Skip to content

Commit a9a8a38

Browse files
committed
examples Hellop5 section to ES6
1 parent 1138993 commit a9a8a38

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/data/examples/en/90_Hello_P5/05_weather.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ function draw() {
5555
if (position.x < 0) position.x = width;
5656
if (position.y > height) position.y = 0;
5757
if (position.y < 0) position.y = height;
58-
59-
6058
}
6159

6260
function gotWeather(weather) {

src/data/examples/en/90_Hello_P5/06_drawing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ class Path {
8585
}
8686

8787
// Display plath
88-
display() {
89-
88+
display() {
9089
// Loop through backwards
9190
for (let i = this.particles.length - 1; i >= 0; i--) {
9291
// If we shold remove it
@@ -109,6 +108,7 @@ class Particle {
109108
this.drag = 0.95;
110109
this.lifespan = 255;
111110
}
111+
112112
update() {
113113
// Move it
114114
this.position.add(this.velocity);

src/data/examples/zh-Hans/90_Hello_P5/05_weather.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ function draw() {
5555
if (position.x < 0) position.x = width;
5656
if (position.y > height) position.y = 0;
5757
if (position.y < 0) position.y = height;
58-
59-
6058
}
6159

6260
function gotWeather(weather) {

0 commit comments

Comments
 (0)