Skip to content

Commit 348f77d

Browse files
authored
Merge pull request #658 from Ved235/main
Delete duplicate example on keyIsPressed reference page
2 parents 431c305 + 955fe00 commit 348f77d

File tree

5 files changed

+2
-142
lines changed

5 files changed

+2
-142
lines changed

src/content/reference/en/p5/keyIsPressed.mdx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -46,34 +46,6 @@ example:
4646
<code>
4747
// Click on the canvas to begin detecting key presses.
4848
49-
function setup() {
50-
createCanvas(100, 100);
51-
52-
describe(
53-
'A gray square with a white square at its center. The white square turns black when the user presses a key.'
54-
);
55-
}
56-
57-
function draw() {
58-
background(200);
59-
60-
// Style the square.
61-
if (keyIsPressed) {
62-
fill(0);
63-
} else {
64-
fill(255);
65-
}
66-
67-
// Draw the square.
68-
square(25, 25, 50);
69-
}
70-
</code>
71-
</div>
72-
73-
<div>
74-
<code>
75-
// Click on the canvas to begin detecting key presses.
76-
7749
function setup() {
7850
createCanvas(100, 100);
7951

src/content/reference/es/p5/keyIsPressed.mdx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -46,34 +46,6 @@ example:
4646
<code>
4747
// Click on the canvas to begin detecting key presses.
4848
49-
function setup() {
50-
createCanvas(100, 100);
51-
52-
describe(
53-
'A gray square with a white square at its center. The white square turns black when the user presses a key.'
54-
);
55-
}
56-
57-
function draw() {
58-
background(200);
59-
60-
// Style the square.
61-
if (keyIsPressed) {
62-
fill(0);
63-
} else {
64-
fill(255);
65-
}
66-
67-
// Draw the square.
68-
square(25, 25, 50);
69-
}
70-
</code>
71-
</div>
72-
73-
<div>
74-
<code>
75-
// Click on the canvas to begin detecting key presses.
76-
7749
function setup() {
7850
createCanvas(100, 100);
7951

src/content/reference/hi/p5/keyIsPressed.mdx

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -46,34 +46,6 @@ example:
4646
<code>
4747
// Click on the canvas to begin detecting key presses.
4848
49-
function setup() {
50-
createCanvas(100, 100);
51-
52-
describe(
53-
'A gray square with a white square at its center. The white square turns black when the user presses a key.'
54-
);
55-
}
56-
57-
function draw() {
58-
background(200);
59-
60-
// Style the square.
61-
if (keyIsPressed) {
62-
fill(0);
63-
} else {
64-
fill(255);
65-
}
66-
67-
// Draw the square.
68-
square(25, 25, 50);
69-
}
70-
</code>
71-
</div>
72-
73-
<div>
74-
<code>
75-
// Click on the canvas to begin detecting key presses.
76-
7749
function setup() {
7850
createCanvas(100, 100);
7951

src/content/reference/ko/p5/keyIsPressed.mdx

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,35 +38,7 @@ example:
3838
}
3939
</code>
4040
</div>
41-
42-
<div>
43-
<code>
44-
// Click on the canvas to begin detecting key presses.
45-
46-
function setup() {
47-
createCanvas(100, 100);
48-
49-
describe(
50-
'A gray square with a white square at its center. The white square turns black when the user presses a key.'
51-
);
52-
}
53-
54-
function draw() {
55-
background(200);
56-
57-
// Style the square.
58-
if (keyIsPressed) {
59-
fill(0);
60-
} else {
61-
fill(255);
62-
}
63-
64-
// Draw the square.
65-
square(25, 25, 50);
66-
}
67-
</code>
68-
</div>
69-
41+
7042
<div>
7143
<code>
7244
// Click on the canvas to begin detecting key presses.

src/content/reference/zh-Hans/p5/keyIsPressed.mdx

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,35 +38,7 @@ example:
3838
}
3939
</code>
4040
</div>
41-
42-
<div>
43-
<code>
44-
// Click on the canvas to begin detecting key presses.
45-
46-
function setup() {
47-
createCanvas(100, 100);
48-
49-
describe(
50-
'A gray square with a white square at its center. The white square turns black when the user presses a key.'
51-
);
52-
}
53-
54-
function draw() {
55-
background(200);
56-
57-
// Style the square.
58-
if (keyIsPressed) {
59-
fill(0);
60-
} else {
61-
fill(255);
62-
}
63-
64-
// Draw the square.
65-
square(25, 25, 50);
66-
}
67-
</code>
68-
</div>
69-
41+
7042
<div>
7143
<code>
7244
// Click on the canvas to begin detecting key presses.

0 commit comments

Comments
 (0)