From 955fe002d67f7a81903cd98ffdad520e261176eb Mon Sep 17 00:00:00 2001 From: Vedant Singhal Date: Fri, 13 Dec 2024 17:16:52 +0530 Subject: [PATCH] Removed duplicate example --- src/content/reference/en/p5/keyIsPressed.mdx | 28 ----------------- src/content/reference/es/p5/keyIsPressed.mdx | 28 ----------------- src/content/reference/hi/p5/keyIsPressed.mdx | 28 ----------------- src/content/reference/ko/p5/keyIsPressed.mdx | 30 +------------------ .../reference/zh-Hans/p5/keyIsPressed.mdx | 30 +------------------ 5 files changed, 2 insertions(+), 142 deletions(-) diff --git a/src/content/reference/en/p5/keyIsPressed.mdx b/src/content/reference/en/p5/keyIsPressed.mdx index accc45a4cb..4251bde219 100644 --- a/src/content/reference/en/p5/keyIsPressed.mdx +++ b/src/content/reference/en/p5/keyIsPressed.mdx @@ -46,34 +46,6 @@ example: // 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); - } - - - -
- - // Click on the canvas to begin detecting key presses. - function setup() { createCanvas(100, 100); diff --git a/src/content/reference/es/p5/keyIsPressed.mdx b/src/content/reference/es/p5/keyIsPressed.mdx index 7981ae5f7d..5787a2e17f 100644 --- a/src/content/reference/es/p5/keyIsPressed.mdx +++ b/src/content/reference/es/p5/keyIsPressed.mdx @@ -46,34 +46,6 @@ example: // 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); - } - -
- -
- - // Click on the canvas to begin detecting key presses. - function setup() { createCanvas(100, 100); diff --git a/src/content/reference/hi/p5/keyIsPressed.mdx b/src/content/reference/hi/p5/keyIsPressed.mdx index 54d11bf11b..de9fffa241 100644 --- a/src/content/reference/hi/p5/keyIsPressed.mdx +++ b/src/content/reference/hi/p5/keyIsPressed.mdx @@ -46,34 +46,6 @@ example: // 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); - } - -
- -
- - // Click on the canvas to begin detecting key presses. - function setup() { createCanvas(100, 100); diff --git a/src/content/reference/ko/p5/keyIsPressed.mdx b/src/content/reference/ko/p5/keyIsPressed.mdx index 665e5fcb83..64cce09c75 100644 --- a/src/content/reference/ko/p5/keyIsPressed.mdx +++ b/src/content/reference/ko/p5/keyIsPressed.mdx @@ -38,35 +38,7 @@ example: }
- -
- - // 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); - } - -
- +
// Click on the canvas to begin detecting key presses. diff --git a/src/content/reference/zh-Hans/p5/keyIsPressed.mdx b/src/content/reference/zh-Hans/p5/keyIsPressed.mdx index 981b74ba29..f368a3ad45 100644 --- a/src/content/reference/zh-Hans/p5/keyIsPressed.mdx +++ b/src/content/reference/zh-Hans/p5/keyIsPressed.mdx @@ -38,35 +38,7 @@ example: }
- -
- - // 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); - } - -
- +
// Click on the canvas to begin detecting key presses.