Skip to content

Commit 213fd24

Browse files
authored
Merge pull request #603 from ameybhavsar24/Fix#597
Updated "Sound effect" example.
2 parents d4ad0c3 + abe6164 commit 213fd24

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/data/examples/en/33_Sound/05_Sound_Effect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class Doorbell {
3232
}
3333
stroke(0);
3434
strokeWeight(4);
35+
ellipseMode(RADIUS);
3536
ellipse(this.x, this.y, this.r, this.r);
3637
}
3738
}
@@ -51,7 +52,7 @@ function setup() {
5152
dingdong = loadSound('assets/doorbell.mp3');
5253

5354
// Create a new doorbell
54-
doorbell = new Doorbell(width / 2, height / 2, 64);
55+
doorbell = new Doorbell(width / 2, height / 2, 32);
5556
}
5657

5758
function draw() {

src/data/examples/es/33_Sound/05_Sound_Effect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class Doorbell {
3333
}
3434
stroke(0);
3535
strokeWeight(4);
36+
ellipseMode(RADIUS);
3637
ellipse(this.x, this.y, this.r, this.r);
3738
}
3839
}
@@ -52,7 +53,7 @@ function setup() {
5253
dingdong = loadSound('assets/doorbell.mp3');
5354

5455
// crear un nuevo timbre
55-
doorbell = new Doorbell(width / 2, height / 2, 64);
56+
doorbell = new Doorbell(width / 2, height / 2, 32);
5657
}
5758

5859
function draw() {

src/data/examples/zh-Hans/33_Sound/05_Sound_Effect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class Doorbell {
3232
}
3333
stroke(0);
3434
strokeWeight(4);
35+
ellipseMode(RADIUS);
3536
ellipse(this.x, this.y, this.r, this.r);
3637
}
3738
}
@@ -51,7 +52,7 @@ function setup() {
5152
dingdong = loadSound('assets/doorbell.mp3');
5253

5354
// Create a new doorbell
54-
doorbell = new Doorbell(width / 2, height / 2, 64);
55+
doorbell = new Doorbell(width / 2, height / 2, 32);
5556
}
5657

5758
function draw() {

0 commit comments

Comments
 (0)