diff --git a/public/images/by-nc-sa.svg b/public/images/by-nc-sa.svg new file mode 100644 index 0000000000..514c251b7a --- /dev/null +++ b/public/images/by-nc-sa.svg @@ -0,0 +1,202 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/content/examples/en/08_Listing_Data_with_Arrays/00_Random_Poetry/code.js b/src/content/examples/en/08_Listing_Data_With_Arrays/00_Random_Poetry/code.js similarity index 100% rename from src/content/examples/en/08_Listing_Data_with_Arrays/00_Random_Poetry/code.js rename to src/content/examples/en/08_Listing_Data_With_Arrays/00_Random_Poetry/code.js diff --git a/src/content/examples/en/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx b/src/content/examples/en/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx similarity index 98% rename from src/content/examples/en/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx rename to src/content/examples/en/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx index be822ccadb..8ff6dcb3b2 100644 --- a/src/content/examples/en/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx +++ b/src/content/examples/en/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx @@ -1,13 +1,13 @@ ---- -featuredImage: "../../../images/featured/08_Listing_Data_with_Arrays-00_Random_Poetry-thumbnail.png" -featuredImageAlt: A random series of words related to p5.js scattered on a maroon background. -title: Random Poetry -oneLineDescription: Generate a poem with words randomly selected from a bank. ---- - -Using the -floor() -and -random() -functions, you can randomly select a series of items from an array +--- +featuredImage: "../../../images/featured/08_Listing_Data_with_Arrays-00_Random_Poetry-thumbnail.png" +featuredImageAlt: A random series of words related to p5.js scattered on a maroon background. +title: Random Poetry +oneLineDescription: Generate a poem with words randomly selected from a bank. +--- + +Using the +floor() +and +random() +functions, you can randomly select a series of items from an array and draw them at different sizes and positions on the canvas. \ No newline at end of file diff --git a/src/content/examples/en/08_Listing_Data_with_Arrays/More/Array.js b/src/content/examples/en/08_Listing_Data_With_Arrays/More/Array.js similarity index 100% rename from src/content/examples/en/08_Listing_Data_with_Arrays/More/Array.js rename to src/content/examples/en/08_Listing_Data_With_Arrays/More/Array.js diff --git a/src/content/examples/en/08_Listing_Data_with_Arrays/More/BrownianMotion.js b/src/content/examples/en/08_Listing_Data_With_Arrays/More/BrownianMotion.js similarity index 100% rename from src/content/examples/en/08_Listing_Data_with_Arrays/More/BrownianMotion.js rename to src/content/examples/en/08_Listing_Data_With_Arrays/More/BrownianMotion.js diff --git a/src/content/examples/en/08_Listing_Data_with_Arrays/More/Morph.js b/src/content/examples/en/08_Listing_Data_With_Arrays/More/Morph.js similarity index 100% rename from src/content/examples/en/08_Listing_Data_with_Arrays/More/Morph.js rename to src/content/examples/en/08_Listing_Data_With_Arrays/More/Morph.js diff --git a/src/content/examples/en/08_Listing_Data_with_Arrays/More/Mouse_Signals.js b/src/content/examples/en/08_Listing_Data_With_Arrays/More/Mouse_Signals.js similarity index 100% rename from src/content/examples/en/08_Listing_Data_with_Arrays/More/Mouse_Signals.js rename to src/content/examples/en/08_Listing_Data_With_Arrays/More/Mouse_Signals.js diff --git a/src/content/examples/en/08_Listing_Data_with_Arrays/More/Pie_Chart.js b/src/content/examples/en/08_Listing_Data_With_Arrays/More/Pie_Chart.js similarity index 100% rename from src/content/examples/en/08_Listing_Data_with_Arrays/More/Pie_Chart.js rename to src/content/examples/en/08_Listing_Data_With_Arrays/More/Pie_Chart.js diff --git a/src/content/examples/en/08_Listing_Data_with_Arrays/More/Storing_Input.js b/src/content/examples/en/08_Listing_Data_With_Arrays/More/Storing_Input.js similarity index 100% rename from src/content/examples/en/08_Listing_Data_with_Arrays/More/Storing_Input.js rename to src/content/examples/en/08_Listing_Data_With_Arrays/More/Storing_Input.js diff --git a/src/content/examples/en/08_Listing_Data_with_Arrays/More/Walk_Over_2dArray.js b/src/content/examples/en/08_Listing_Data_With_Arrays/More/Walk_Over_2dArray.js similarity index 100% rename from src/content/examples/en/08_Listing_Data_with_Arrays/More/Walk_Over_2dArray.js rename to src/content/examples/en/08_Listing_Data_With_Arrays/More/Walk_Over_2dArray.js diff --git a/src/content/examples/es/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx b/src/content/examples/es/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx similarity index 98% rename from src/content/examples/es/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx rename to src/content/examples/es/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx index 3a60668780..fcb15ddec7 100644 --- a/src/content/examples/es/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx +++ b/src/content/examples/es/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx @@ -1,9 +1,9 @@ ---- -featuredImage: "../../../images/featured/08_Listing_Data_with_Arrays-00_Random_Poetry-thumbnail.png" -title: Poema Aleatorio -oneLineDescription: Genera un poema con palabras seleccionadas al azar de un banco de palabras. ---- - -Usando las funciones floor() y -random(), puedes seleccionar +--- +featuredImage: "../../../images/featured/08_Listing_Data_with_Arrays-00_Random_Poetry-thumbnail.png" +title: Poema Aleatorio +oneLineDescription: Genera un poema con palabras seleccionadas al azar de un banco de palabras. +--- + +Usando las funciones floor() y +random(), puedes seleccionar aleatoriamente una serie de elementos de un arreglo y dibujarlos en diferentes tamaños y posiciones en el lienzo. \ No newline at end of file diff --git a/src/content/examples/hi/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx b/src/content/examples/hi/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx similarity index 98% rename from src/content/examples/hi/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx rename to src/content/examples/hi/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx index 77439c4c9a..f0c69765ab 100644 --- a/src/content/examples/hi/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx +++ b/src/content/examples/hi/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx @@ -1,12 +1,12 @@ ---- -featuredImage: "../../../images/featured/08_Listing_Data_with_Arrays-00_Random_Poetry-thumbnail.png" -title: यादृच्छिक कविता -oneLineDescription: बैंक से यादृच्छिक रूप से चुने गए शब्दों से एक कविता तैयार करें। ---- - -floor() -और -random() -फ़ंक्शंस, का उपयोग -आप किसी सरणी से यादृच्छिक रूप से आइटमों की एक श्रृंखला का चयन कर सकते हैं +--- +featuredImage: "../../../images/featured/08_Listing_Data_with_Arrays-00_Random_Poetry-thumbnail.png" +title: यादृच्छिक कविता +oneLineDescription: बैंक से यादृच्छिक रूप से चुने गए शब्दों से एक कविता तैयार करें। +--- + +floor() +और +random() +फ़ंक्शंस, का उपयोग +आप किसी सरणी से यादृच्छिक रूप से आइटमों की एक श्रृंखला का चयन कर सकते हैं और उन्हें कैनवास पर विभिन्न आकारों और स्थानों पर बनाएं। \ No newline at end of file diff --git a/src/content/examples/ko/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx b/src/content/examples/ko/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx similarity index 98% rename from src/content/examples/ko/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx rename to src/content/examples/ko/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx index b35c4cc508..784bfda26a 100644 --- a/src/content/examples/ko/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx +++ b/src/content/examples/ko/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx @@ -1,8 +1,8 @@ ---- -featuredImage: "../../../images/featured/08_Listing_Data_with_Arrays-00_Random_Poetry-thumbnail.png" -title: 랜덤 시 -oneLineDescription: 단어 모음집으로부터 무작위로 선택된 단어들로 시를 생성합니다. ---- - -floor()와 -random() 함수를 사용하여 배열에서 일련의 항목을 무작위로 선택하고 캔버스의 다양한 크기와 위치에 그릴 수 있습니다. +--- +featuredImage: "../../../images/featured/08_Listing_Data_with_Arrays-00_Random_Poetry-thumbnail.png" +title: 랜덤 시 +oneLineDescription: 단어 모음집으로부터 무작위로 선택된 단어들로 시를 생성합니다. +--- + +floor()와 +random() 함수를 사용하여 배열에서 일련의 항목을 무작위로 선택하고 캔버스의 다양한 크기와 위치에 그릴 수 있습니다. diff --git a/src/content/examples/zh-Hans/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx b/src/content/examples/zh-Hans/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx similarity index 98% rename from src/content/examples/zh-Hans/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx rename to src/content/examples/zh-Hans/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx index e665d78d8e..5f10e00b6a 100644 --- a/src/content/examples/zh-Hans/08_Listing_Data_with_Arrays/00_Random_Poetry/description.mdx +++ b/src/content/examples/zh-Hans/08_Listing_Data_With_Arrays/00_Random_Poetry/description.mdx @@ -1,7 +1,7 @@ ---- -featuredImage: "../../../images/featured/08_Listing_Data_with_Arrays-00_Random_Poetry-thumbnail.png" -title: 随机诗歌 -oneLineDescription: 从一个词库中随机选择单词生成一首诗。 ---- - -使用 floor()random() 函数,你可以从数组中随机选择一系列项目,并在画布上以不同的大小和位置绘制它们。 +--- +featuredImage: "../../../images/featured/08_Listing_Data_with_Arrays-00_Random_Poetry-thumbnail.png" +title: 随机诗歌 +oneLineDescription: 从一个词库中随机选择单词生成一首诗。 +--- + +使用 floor()random() 函数,你可以从数组中随机选择一系列项目,并在画布上以不同的大小和位置绘制它们。 diff --git a/src/content/ui/en.yaml b/src/content/ui/en.yaml index ad062ff136..0da0927956 100644 --- a/src/content/ui/en.yaml +++ b/src/content/ui/en.yaml @@ -112,7 +112,8 @@ exampleCategories: Transformation: "Transformation" Calculating Values: "Calculating Values" Repetition: "Repetition" - Listing Data With Arrays: "Listing Data With Arrays" + Listing Data With Arrays: "Listing Data With Arrays" + # Renamed the file and made some small changes Angles And Motion: "Angles And Motion" Games: "Games" 3D: "3D" diff --git a/src/layouts/ExampleLayout.astro b/src/layouts/ExampleLayout.astro index 686ca2de64..cc31a5d2bf 100644 --- a/src/layouts/ExampleLayout.astro +++ b/src/layouts/ExampleLayout.astro @@ -65,6 +65,12 @@ const { Content } = await example.render();

{example.data.arialabel}

+
+

+ {example.data.title} by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0. +

+ +
{