Skip to content

Commit 0d50ad0

Browse files
committed
Add 2023 revision attributions
1 parent 8b3d87f commit 0d50ad0

File tree

47 files changed

+208
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+208
-16
lines changed

src/content/examples/config.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,18 @@ export const examplesCollection = defineCollection({
4949
* When rendering (in ExampleLayout.astro), these keys are replaced
5050
* with their full details from `remixLookup`.
5151
*/
52-
export const remixLookup = {
52+
53+
type RemixEntry = {
54+
attributionURL: string;
55+
attributionLabel: string;
56+
remixURL: string;
57+
remixLabel: string;
58+
};
59+
60+
export const remixLookup: { [key: string]: RemixEntry } = {
5361
"revision-2023-calebfoss": {
5462
attributionURL: "https://github.com/calebfoss",
55-
attributionLabel: "Caleb calebfoss",
63+
attributionLabel: "Caleb Foss",
5664
remixURL: "https://github.com/processing/p5.js-example",
5765
remixLabel: "Revised in 2023",
5866
},
@@ -62,10 +70,10 @@ export const remixLookup = {
6270
remixURL: "https://github.com/processing/p5.js-example",
6371
remixLabel: "Revised in 2023",
6472
},
65-
"revision-2023-katlich112358": {
73+
"revision-2023-klich": {
6674
attributionURL: "https://www.klich.co/",
6775
attributionLabel: "Kasey Lichtlyter",
6876
remixURL: "https://github.com/processing/p5.js-example",
6977
remixLabel: "Revised in 2023",
70-
}
71-
};
78+
},
79+
};

src/content/examples/en/02_Animation_And_Variables/00_Drawing_Lines/description.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ title: Drawing Lines
55
oneLineDescription: Draw with the mouse.
66

77
remix:
8-
- attributionURL: https://github.com/dkessner
9-
attributionLabel: Darren Kessner
10-
remixURL: https://github.com/processing/p5.js-example
11-
remixLabel: Revised in 2023
8+
- revision-2023-dkessner
129
---
1310

1411
Click and drag the mouse to draw a line.

src/content/examples/en/02_Animation_And_Variables/02_Mobile_Device_Movement/description.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ featuredImageAlt: White circles on a black background, with varying degrees of t
44
title: Mobile Device Movement
55
oneLineDescription: Animate based on device motion.
66
featured: true
7+
8+
9+
remix:
10+
- revision-2023-klich
711
---
812

913
The <a href="https://p5js.org/reference/p5/deviceMoved" target="_blank">deviceMoved()</a>

src/content/examples/en/02_Animation_And_Variables/03_Conditions/description.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ featuredImage: "../../../images/featured/02_Animation_And_Variables-03_Condition
33
featuredImageAlt: A small black circle on a rainbow, lattice-shaped path, on top of a grey and white striped background.
44
title: Conditions
55
oneLineDescription: Use if and else statements to make decisions while your sketch runs.
6+
7+
collectivelyAttributedSince: 2024
8+
remix:
9+
- attributionURL: https://people.rit.edu/wmhics/
10+
attributionLabel: Prof. WM Harris
11+
- revision-2023-calebfoss
612
---
713

814
If and else statements allow a

src/content/examples/en/03_Imported_Media/00_Words/description.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ featuredImage: "../../../images/featured/03_Imported_Media-00_Words-thumbnail.pn
33
featuredImageAlt: Three columns of the words “ichi,” “ni,” “san,” and “shi” on a white background. The first column is right aligned, the middle column is center aligned, and the left column is left aligned.
44
title: Words
55
oneLineDescription: Load fonts and draw text.
6+
7+
remix:
8+
- revision-2023-klich
69
---
710

811
The <a href="https://p5js.org/reference/p5/text" target="_blank">text()</a> function is used for inserting text into the canvas.

src/content/examples/en/03_Imported_Media/01_Copy_Image_Data/description.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ featuredImage: "../../../images/featured/03_Imported_Media-01_Copy_Image_Data-th
33
featuredImageAlt: Black-and-white photograph of a parrot. A curvy line is drawn across the image; within the confines of that line, color is added to the photograph.
44
title: Copy Image Data
55
oneLineDescription: Paint from an image file onto the canvas.
6+
7+
remix:
8+
- revision-2023-klich
69
---
710

811
Using the <a href="https://p5js.org/reference/p5/copy" target="_blank">copy()</a>

src/content/examples/en/03_Imported_Media/02_Alpha_Mask/description.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ featuredImage: "../../../images/featured/03_Imported_Media-02_Alpha_Mask-thumbna
33
featuredImageAlt: Two leaf sprigs side by side on a white background. The right sprig is labeled "Mask." The left sprig is labeled "Masked Image," and uses the shape of the right sprig to mask a photograph of tulips.
44
title: Alpha Mask
55
oneLineDescription: Use one image to cut out a section of another image.
6+
7+
remix:
8+
- revision-2023-klich
69
---
710

811
Using the

src/content/examples/en/03_Imported_Media/03_Image_Transparency/description.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ featuredImage: "../../../images/featured/03_Imported_Media-03_Image_Transparency
33
featuredImageAlt: An astronaut on a planet as the background with a slightly transparent version of this image overlaid and to the left.
44
title: Image Transparency
55
oneLineDescription: Make an image translucent on the canvas.
6+
7+
remix:
8+
- revision-2023-klich
69
---
710

811
This program overlays one image over another by modifying the

src/content/examples/en/03_Imported_Media/04_Create_Audio/description.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ featuredImage: "../../../images/featured/03_Imported_Media-04_Create_Audio-thumb
33
featuredImageAlt: A close up of an audio player timestamp, reading "0:00 / 2."
44
title: Audio Player
55
oneLineDescription: Create a player for an audio file.
6+
7+
remix:
8+
- revision-2023-klich
69
---
710

811
<a href="https://p5js.org/reference/p5/createAudio" target="_blank">createAudio()</a>

src/content/examples/en/03_Imported_Media/05_Video/description.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ featuredImage: "../../../images/featured/03_Imported_Media-05_Video-thumbnail.pn
33
featuredImageAlt: A screenshot of a video of a hand, with the pointer finger touching a desk.
44
title: Video Player
55
oneLineDescription: Create a player for a video file.
6+
7+
remix:
8+
- revision-2023-klich
69
---
710

811
Using the <a href="https://p5js.org/reference/p5/noCanvas" target="_blank">noCanvas()</a>

0 commit comments

Comments
 (0)