Skip to content

Commit

Permalink
Merge pull request #658 from Ved235/main
Browse files Browse the repository at this point in the history
Delete duplicate example on keyIsPressed reference page
  • Loading branch information
ksen0 authored Dec 18, 2024
2 parents 431c305 + 955fe00 commit 348f77d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 142 deletions.
28 changes: 0 additions & 28 deletions src/content/reference/en/p5/keyIsPressed.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,6 @@ example:
<code>
// Click on the canvas to begin detecting key presses.
function setup() {
createCanvas(100, 100);
describe(
'A gray square with a white square at its center. The white square turns black when the user presses a key.'
);
}
function draw() {
background(200);
// Style the square.
if (keyIsPressed) {
fill(0);
} else {
fill(255);
}
// Draw the square.
square(25, 25, 50);
}
</code>
</div>
<div>
<code>
// Click on the canvas to begin detecting key presses.
function setup() {
createCanvas(100, 100);
Expand Down
28 changes: 0 additions & 28 deletions src/content/reference/es/p5/keyIsPressed.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,6 @@ example:
<code>
// Click on the canvas to begin detecting key presses.
function setup() {
createCanvas(100, 100);
describe(
'A gray square with a white square at its center. The white square turns black when the user presses a key.'
);
}
function draw() {
background(200);
// Style the square.
if (keyIsPressed) {
fill(0);
} else {
fill(255);
}
// Draw the square.
square(25, 25, 50);
}
</code>
</div>
<div>
<code>
// Click on the canvas to begin detecting key presses.
function setup() {
createCanvas(100, 100);
Expand Down
28 changes: 0 additions & 28 deletions src/content/reference/hi/p5/keyIsPressed.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,6 @@ example:
<code>
// Click on the canvas to begin detecting key presses.
function setup() {
createCanvas(100, 100);
describe(
'A gray square with a white square at its center. The white square turns black when the user presses a key.'
);
}
function draw() {
background(200);
// Style the square.
if (keyIsPressed) {
fill(0);
} else {
fill(255);
}
// Draw the square.
square(25, 25, 50);
}
</code>
</div>
<div>
<code>
// Click on the canvas to begin detecting key presses.
function setup() {
createCanvas(100, 100);
Expand Down
30 changes: 1 addition & 29 deletions src/content/reference/ko/p5/keyIsPressed.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,35 +38,7 @@ example:
}
</code>
</div>
<div>
<code>
// Click on the canvas to begin detecting key presses.
function setup() {
createCanvas(100, 100);
describe(
'A gray square with a white square at its center. The white square turns black when the user presses a key.'
);
}
function draw() {
background(200);
// Style the square.
if (keyIsPressed) {
fill(0);
} else {
fill(255);
}
// Draw the square.
square(25, 25, 50);
}
</code>
</div>
<div>
<code>
// Click on the canvas to begin detecting key presses.
Expand Down
30 changes: 1 addition & 29 deletions src/content/reference/zh-Hans/p5/keyIsPressed.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,35 +38,7 @@ example:
}
</code>
</div>
<div>
<code>
// Click on the canvas to begin detecting key presses.
function setup() {
createCanvas(100, 100);
describe(
'A gray square with a white square at its center. The white square turns black when the user presses a key.'
);
}
function draw() {
background(200);
// Style the square.
if (keyIsPressed) {
fill(0);
} else {
fill(255);
}
// Draw the square.
square(25, 25, 50);
}
</code>
</div>
<div>
<code>
// Click on the canvas to begin detecting key presses.
Expand Down

0 comments on commit 348f77d

Please sign in to comment.