diff --git a/src/data/examples/en/05_Image/10_Copy_Method.js b/src/data/examples/en/05_Image/10_Copy_Method.js index ba71cf7f43..eb9966e40e 100644 --- a/src/data/examples/en/05_Image/10_Copy_Method.js +++ b/src/data/examples/en/05_Image/10_Copy_Method.js @@ -1,21 +1,21 @@ -/* - * @name Copy() method - * @arialabel Parrot rendered in black and white. The user’s cursor is a paint brush and as the user presses and holds on the image, the area becomes colored - * @frame 600,400 - * @description An example of how to simulate coloring image with the copy() method. - */ -let draft, ready; -function preload() { - ready = loadImage("assets/parrot-color.png"); - draft = loadImage("assets/parrot-bw.png"); -} -function setup() { - createCanvas(600, 400); - noCursor(); - cursor("assets/brush.png", 20, -10); - image(ready, 0, 0); - image(draft, 0, 0); -} -function mouseDragged() { - copy(ready, mouseX, mouseY, 20, 20, mouseX, mouseY, 20, 20); -} +/* + * @name Copy() method + * @arialabel Parrot rendered in black and white. The user’s cursor is a paint brush and as the user presses and holds on the image, the area becomes colored + * @frame 600,400 + * @description An example of how to simulate coloring image with the copy() method. + */ +let draft, ready; +function preload() { + ready = loadImage("assets/parrot-color.png"); + draft = loadImage("assets/parrot-bw.png"); +} +function setup() { + createCanvas(600, 400); + noCursor(); + cursor("assets/brush.png", 20, -10); + image(ready, 0, 0); + image(draft, 0, 0); +} +function mouseDragged() { + copy(ready, mouseX, mouseY, 20, 20, mouseX, mouseY, 20, 20); +} diff --git a/src/data/examples/es/05_Image/10_Copy_Method.js b/src/data/examples/es/05_Image/10_Copy_Method.js index 1c7a8efdfc..8d7db11f81 100644 --- a/src/data/examples/es/05_Image/10_Copy_Method.js +++ b/src/data/examples/es/05_Image/10_Copy_Method.js @@ -1,20 +1,20 @@ -/* - * @name Método copy() - * @frame 600,400 - * @description Un ejemplo de cómo simular colorear una imagen con el método copy(). - */ -let draft, ready; -function preload() { - ready = loadImage("assets/parrot-color.png"); - draft = loadImage("assets/parrot-bw.png"); -} -function setup() { - createCanvas(600, 400); - noCursor(); - cursor("assets/brush.png", 20, -10); - image(ready, 0, 0); - image(draft, 0, 0); -} -function mouseDragged() { - copy(ready, mouseX, mouseY, 20, 20, mouseX, mouseY, 20, 20); -} +/* + * @name Método copy() + * @frame 600,400 + * @description Un ejemplo de cómo simular colorear una imagen con el método copy(). + */ +let draft, ready; +function preload() { + ready = loadImage("assets/parrot-color.png"); + draft = loadImage("assets/parrot-bw.png"); +} +function setup() { + createCanvas(600, 400); + noCursor(); + cursor("assets/brush.png", 20, -10); + image(ready, 0, 0); + image(draft, 0, 0); +} +function mouseDragged() { + copy(ready, mouseX, mouseY, 20, 20, mouseX, mouseY, 20, 20); +} diff --git a/src/data/examples/ko/05_Image/10_Copy_Method.js b/src/data/examples/ko/05_Image/10_Copy_Method.js index 8fc5ba179d..2002d34dfe 100644 --- a/src/data/examples/ko/05_Image/10_Copy_Method.js +++ b/src/data/examples/ko/05_Image/10_Copy_Method.js @@ -1,20 +1,20 @@ -/* - * @name Copy() method - * @frame 600,400 - * @description An example of how to simulate coloring image with the copy() method. - */ -let draft, ready; -function preload() { - ready = loadImage("assets/parrot-color.png"); - draft = loadImage("assets/parrot-bw.png"); -} -function setup() { - createCanvas(600, 400); - noCursor(); - cursor("assets/brush.png", 20, -10); - image(ready, 0, 0); - image(draft, 0, 0); -} -function mouseDragged() { - copy(ready, mouseX, mouseY, 20, 20, mouseX, mouseY, 20, 20); -} +/* + * @name Copy() method + * @frame 600,400 + * @description An example of how to simulate coloring image with the copy() method. + */ +let draft, ready; +function preload() { + ready = loadImage("assets/parrot-color.png"); + draft = loadImage("assets/parrot-bw.png"); +} +function setup() { + createCanvas(600, 400); + noCursor(); + cursor("assets/brush.png", 20, -10); + image(ready, 0, 0); + image(draft, 0, 0); +} +function mouseDragged() { + copy(ready, mouseX, mouseY, 20, 20, mouseX, mouseY, 20, 20); +} diff --git a/src/data/examples/zh-Hans/05_Image/10_Copy_Method.js b/src/data/examples/zh-Hans/05_Image/10_Copy_Method.js index 77916f2549..0e7f9431e5 100644 --- a/src/data/examples/zh-Hans/05_Image/10_Copy_Method.js +++ b/src/data/examples/zh-Hans/05_Image/10_Copy_Method.js @@ -1,20 +1,20 @@ -/* - * @name Copy() 函数 - * @frame 600,400 - * @description 一个如何使用 copy() 函数模拟为图像着色的范例。 - */ -let draft, ready; -function preload() { - ready = loadImage("assets/parrot-color.png"); - draft = loadImage("assets/parrot-bw.png"); -} -function setup() { - createCanvas(600, 400); - noCursor(); - cursor("assets/brush.png", 20, -10); - image(ready, 0, 0); - image(draft, 0, 0); -} -function mouseDragged() { - copy(ready, mouseX, mouseY, 20, 20, mouseX, mouseY, 20, 20); -} +/* + * @name Copy() 函数 + * @frame 600,400 + * @description 一个如何使用 copy() 函数模拟为图像着色的范例。 + */ +let draft, ready; +function preload() { + ready = loadImage("assets/parrot-color.png"); + draft = loadImage("assets/parrot-bw.png"); +} +function setup() { + createCanvas(600, 400); + noCursor(); + cursor("assets/brush.png", 20, -10); + image(ready, 0, 0); + image(draft, 0, 0); +} +function mouseDragged() { + copy(ready, mouseX, mouseY, 20, 20, mouseX, mouseY, 20, 20); +}