Skip to content

Commit 2591781

Browse files
Merge branch 'main' into main
2 parents 9b20f2c + 3754007 commit 2591781

File tree

129 files changed

+555
-304
lines changed

Some content is hidden

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

129 files changed

+555
-304
lines changed

public/reference/data.json

+189-136
Large diffs are not rendered by default.

public/search-indices/en.json

+1-1
Large diffs are not rendered by default.

public/search-indices/es.json

+1-1
Large diffs are not rendered by default.

public/search-indices/hi.json

+1-1
Large diffs are not rendered by default.

public/search-indices/ko.json

+1-1
Large diffs are not rendered by default.

public/search-indices/zh-Hans.json

+1-1
Large diffs are not rendered by default.

src/components/CodeEmbed/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const CodeEmbed = (props) => {
4545
const largeSketch = previewWidth && previewWidth > 770 - 60;
4646

4747
// Quick hack to make room for DOM that gets added below the canvas by default
48-
const domMatch = /create(Button|Select|P|Div|Input)/.exec(initialCode);
48+
const domMatch = /create(Button|Select|P|Div|Input|ColorPicker)/.exec(initialCode);
4949
if (domMatch && previewHeight) {
5050
previewHeight += 100;
5151
}

src/components/PageHeader/HomePage.astro

+25-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ interface Props {
77
config: CollectionEntry<"homepage">;
88
}
99
const { config } = Astro.props;
10+
1011
---
1112

1213
<div class="px-lg pt-5xl lg:pt-3xl pb-0 h-full">
@@ -25,22 +26,38 @@ const { config } = Astro.props;
2526
<p
2627
class={`hero-caption text-body-caption pb-sm mt-0 ${i > 0 ? "hidden" : ""}`}
2728
>
28-
{im.caption}
29+
{im.linkTarget ? (
30+
<a href={im.linkTarget}>{im.caption}</a>
31+
) : (
32+
im.caption
33+
)}
2934
</p>
3035
))
3136
}
3237
</div>
3338

3439
{
3540
config.data.heroImages.map((im, i) => (
41+
im.linkTarget ?
42+
<a href={im.linkTarget }>
3643
<Image
37-
containerClass={`relative hero-image-container ${i > 0 ? "hidden" : ""}`}
38-
class={"hero-image"}
39-
aspectRatio="none"
40-
src={im.image}
41-
alt={im.altText}
42-
loading={i > 0 ? "lazy" : "eager"}
43-
/>
44+
containerClass={`relative hero-image-container ${i > 0 ? "hidden" : ""}`}
45+
class={"hero-image"}
46+
aspectRatio="none"
47+
src={im.image}
48+
alt={im.altText}
49+
loading={i > 0 ? "lazy" : "eager"}
50+
/>
51+
</a>
52+
:
53+
<Image
54+
containerClass={`relative hero-image-container ${i > 0 ? "hidden" : ""}`}
55+
class={"hero-image"}
56+
aspectRatio="none"
57+
src={im.image}
58+
alt={im.altText}
59+
loading={i > 0 ? "lazy" : "eager"}
60+
/>
4461
))
4562
}
4663
</div>

src/content/homepage/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const homepageCollection = defineCollection({
1212
image: image(),
1313
altText: z.string(),
1414
caption: z.string(),
15+
linkTarget: z.string(),
1516
}),
1617
)
1718
.nonempty(),

src/content/homepage/en.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,41 @@
11
title: p5.js
22
heroImages:
33
- image: ./images/hero.webp
4+
linkTarget: "https://archive.org/details/processing-community-catalog-2021"
45
altText: Lauren Lee McCarthy reading the Processing Community Catalog.
56
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo credit: Maximo Xtravaganza."
67
- image: ./images/p5for50plus.webp
8+
linkTarget: ""
79
altText: Inhwa Yeom teaching p5.js to people aged 50+.
810
caption: "Coding Club for people aged 50+ in Korea, led by Inhwa Yeom."
911
- image: ./images/salon-2.webp
12+
linkTarget: ""
1013
altText: Qianqian Ye holding a mic next to a big t.v. screen that has a grid of p5.js contributor photos on it.
1114
caption: "Qianqian Ye introducing 600+ p5.js contributors at p5.js Community Salon. Photo credit: Ziyuan Lin."
1215
- image: ./images/ccfest2018.webp
16+
linkTarget: ""
1317
altText: p5.js workshop participants coding while showing their projects on screen.
1418
caption: "p5.js workshop at CC Fest NYC at ITP-NYU in November 2018."
1519
- image: ./images/tunapanda.webp
20+
linkTarget: ""
1621
altText: Students learning to code while checking a p5.js book.
1722
caption: "p5.js workshop at Tunapanda Institute in Nairobi. Photo credit: Tunapanda Institute."
1823
- image: ./images/contributor-conf-2019_10.webp
24+
linkTarget: ""
1925
altText: Person with a microphone speaking to fellow participants in front of text that reads p5.js will not add any new features except those that increase access.
2026
caption: "p5.js will not add any new features except those that increase access."
2127
- image: ./images/contributor-conf-2015.webp
28+
linkTarget: ""
2229
altText: Participants jump, smile and throw their hands in the air on a green lawn.
2330
caption: "p5.js Contributors Conference 2015."
2431
- image: ./images/contributor-conf-2019-17.webp
32+
linkTarget: ""
2533
altText: Participants sit around a table with their laptops and observe code on a screen.
2634
caption: "p5.js Contributors Conference 2019."
35+
- image: ./images/hello-p5-2024.png
36+
linkTarget: "https://hello.p5js.org"
37+
altText: Eight portrait photos of p5 contributors overlaid by the text "Hello, p5.js"
38+
caption: "Find out how to get started with animation, audio, WebGL, accessibility, and contribution to p5.js in this interactive video:"
2739
heroText: >
2840
p5.js is a friendly tool for learning to code and make art. It is a free and open-source JavaScript library built by an inclusive, nurturing community. p5.js welcomes artists, designers, beginners, educators, and anyone else!
2941
referenceHeaderText: Explore the p5.js library reference

src/content/homepage/es.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,41 @@ heroText: >
33
p5.js es una herramienta amigable para aprender a programar y hacer arte. Es una biblioteca de JavaScript libre y de código abierto construida por una comunidad inclusiva y solidaria. ¡p5.js da la bienvenida a artistas, diseñadores, principiantes, educadores y cualquier otra persona!
44
heroImages:
55
- image: ./images/hero.webp
6+
linkTarget: "https://archive.org/details/processing-community-catalog-2021"
67
altText: Lauren Lee McCarthy reading the Processing Community Catalog.
78
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo credit: Maximo Xtravaganza."
89
- image: ./images/p5for50plus.webp
10+
linkTarget: ""
911
altText: Inhwa Yeom teaching p5.js to people aged 50+.
1012
caption: "Coding Club for people aged 50+ in Korea, led by Inhwa Yeom."
1113
- image: ./images/salon-2.webp
14+
linkTarget: ""
1215
altText: Qianqian Ye holding a mic next to a big t.v. screen that has a grid of p5.js contributor photos on it.
1316
caption: "Qianqian Ye introducing 600+ p5.js contributors at p5.js Community Salon. Photo credit: Ziyuan Lin."
1417
- image: ./images/ccfest2018.webp
18+
linkTarget: ""
1519
altText: p5.js workshop participants coding while showing their projects on screen.
1620
caption: "p5.js workshop at CC Fest NYC at ITP-NYU in November 2018."
1721
- image: ./images/tunapanda.webp
22+
linkTarget: ""
1823
altText: Students learning to code while checking a p5.js book.
1924
caption: "p5.js workshop at Tunapanda Institute in Nairobi. Photo credit: Tunapanda Institute."
2025
- image: ./images/contributor-conf-2019_10.webp
26+
linkTarget: ""
2127
altText: Person with a microphone speaking to fellow participants in front of text that reads p5.js will not add any new features except those that increase access.
2228
caption: "p5.js will not add any new features except those that increase access."
2329
- image: ./images/contributor-conf-2015.webp
30+
linkTarget: ""
2431
altText: Participants jump, smile and throw their hands in the air on a green lawn.
2532
caption: "p5.js Contributors Conference 2015."
2633
- image: ./images/contributor-conf-2019-17.webp
34+
linkTarget: ""
2735
altText: Participants sit around a table with their laptops and observe code on a screen.
2836
caption: "p5.js Contributors Conference 2019."
37+
- image: ./images/hello-p5-2024.png
38+
linkTarget: "https://hello.p5js.org"
39+
altText: Eight portrait photos of p5 contributors overlaid by the text "Hello, p5.js"
40+
caption: "Find out how to get started with animation, audio, WebGL, accessibility, and contribution to p5.js in this interactive video:"
2941
referenceHeaderText: Explore the p5.js library reference
3042
examplesHeaderText: Learn p5.js with examples
3143
communityHeaderText: See the p5.js community in action

src/content/homepage/hi.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,41 @@ heroText: >
33
p5.js कोड करना और कला बनाना सीखने के लिए एक अनुकूल उपकरण है। यह एक नि:शुल्क और ओपन-सोर्स जावास्क्रिप्ट लाइब्रेरी है जो एक समावेशी, पोषित समुदाय द्वारा बनाई गई है। p5.js कलाकारों, डिज़ाइनरों, नौसिखिया, शिक्षकों और किसी अन्य का भी स्वागत करता है!
44
heroImages:
55
- image: ./images/hero.webp
6+
linkTarget: "https://archive.org/details/processing-community-catalog-2021"
67
altText: Lauren Lee McCarthy reading the Processing Community Catalog.
78
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo credit: Maximo Xtravaganza."
89
- image: ./images/p5for50plus.webp
10+
linkTarget: ""
911
altText: Inhwa Yeom teaching p5.js to people aged 50+.
1012
caption: "Coding Club for people aged 50+ in Korea, led by Inhwa Yeom."
1113
- image: ./images/salon-2.webp
14+
linkTarget: ""
1215
altText: Qianqian Ye holding a mic next to a big t.v. screen that has a grid of p5.js contributor photos on it.
1316
caption: "Qianqian Ye introducing 600+ p5.js contributors at p5.js Community Salon. Photo credit: Ziyuan Lin."
1417
- image: ./images/ccfest2018.webp
18+
linkTarget: ""
1519
altText: p5.js workshop participants coding while showing their projects on screen.
1620
caption: "p5.js workshop at CC Fest NYC at ITP-NYU in November 2018."
1721
- image: ./images/tunapanda.webp
22+
linkTarget: ""
1823
altText: Students learning to code while checking a p5.js book.
1924
caption: "p5.js workshop at Tunapanda Institute in Nairobi. Photo credit: Tunapanda Institute."
2025
- image: ./images/contributor-conf-2019_10.webp
26+
linkTarget: ""
2127
altText: Person with a microphone speaking to fellow participants in front of text that reads p5.js will not add any new features except those that increase access.
2228
caption: "p5.js will not add any new features except those that increase access."
2329
- image: ./images/contributor-conf-2015.webp
30+
linkTarget: ""
2431
altText: Participants jump, smile and throw their hands in the air on a green lawn.
2532
caption: "p5.js Contributors Conference 2015."
2633
- image: ./images/contributor-conf-2019-17.webp
34+
linkTarget: ""
2735
altText: Participants sit around a table with their laptops and observe code on a screen.
2836
caption: "p5.js Contributors Conference 2019."
37+
- image: ./images/hello-p5-2024.png
38+
linkTarget: "https://hello.p5js.org"
39+
altText: Eight portrait photos of p5 contributors overlaid by the text "Hello, p5.js"
40+
caption: "Find out how to get started with animation, audio, WebGL, accessibility, and contribution to p5.js in this interactive video:"
2941
referenceHeaderText: Explore the p5.js library reference
3042
examplesHeaderText: Learn p5.js with examples
3143
communityHeaderText: See the p5.js community in action
708 KB
Loading

src/content/homepage/ko.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,41 @@ heroText: >
33
p5.js는 코딩을 배우고 예술을 만드는 친근한 도구입니다. 이는 포용적이고 육성적인 커뮤니티에 의해 만들어진 무료 오픈소스 자바스크립트 라이브러리입니다. p5.js는 예술가, 디자이너, 초심자, 교육자 및 여러분 모두를 환영합니다!
44
heroImages:
55
- image: ./images/hero.webp
6+
linkTarget: "https://archive.org/details/processing-community-catalog-2021"
67
altText: Lauren Lee McCarthy reading the Processing Community Catalog.
78
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo credit: Maximo Xtravaganza."
89
- image: ./images/p5for50plus.webp
10+
linkTarget: ""
911
altText: Inhwa Yeom teaching p5.js to people aged 50+.
1012
caption: "Coding Club for people aged 50+ in Korea, led by Inhwa Yeom."
1113
- image: ./images/salon-2.webp
14+
linkTarget: ""
1215
altText: Qianqian Ye holding a mic next to a big t.v. screen that has a grid of p5.js contributor photos on it.
1316
caption: "Qianqian Ye introducing 600+ p5.js contributors at p5.js Community Salon. Photo credit: Ziyuan Lin."
1417
- image: ./images/ccfest2018.webp
18+
linkTarget: ""
1519
altText: p5.js workshop participants coding while showing their projects on screen.
1620
caption: "p5.js workshop at CC Fest NYC at ITP-NYU in November 2018."
1721
- image: ./images/tunapanda.webp
22+
linkTarget: ""
1823
altText: Students learning to code while checking a p5.js book.
1924
caption: "p5.js workshop at Tunapanda Institute in Nairobi. Photo credit: Tunapanda Institute."
2025
- image: ./images/contributor-conf-2019_10.webp
26+
linkTarget: ""
2127
altText: Person with a microphone speaking to fellow participants in front of text that reads p5.js will not add any new features except those that increase access.
2228
caption: "p5.js will not add any new features except those that increase access."
2329
- image: ./images/contributor-conf-2015.webp
30+
linkTarget: ""
2431
altText: Participants jump, smile and throw their hands in the air on a green lawn.
2532
caption: "p5.js Contributors Conference 2015."
2633
- image: ./images/contributor-conf-2019-17.webp
34+
linkTarget: ""
2735
altText: Participants sit around a table with their laptops and observe code on a screen.
2836
caption: "p5.js Contributors Conference 2019."
37+
- image: ./images/hello-p5-2024.png
38+
linkTarget: "https://hello.p5js.org"
39+
altText: Eight portrait photos of p5 contributors overlaid by the text "Hello, p5.js"
40+
caption: "Find out how to get started with animation, audio, WebGL, accessibility, and contribution to p5.js in this interactive video:"
2941
referenceHeaderText: Explore the p5.js library reference
3042
examplesHeaderText: Learn p5.js with examples
3143
communityHeaderText: See the p5.js community in action

src/content/homepage/zh-Hans.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,41 @@ heroText: >
33
p5.js 是一款旨在帮助人们学习编程并进行艺术创作的友好工具。作为一个免费的开源 JavaScript 库,它由一个充满包容和关怀的社区共同打造。无论是艺术家、设计师、初学者、教育者,还是其他任何人,p5.js 都欢迎你的加入!
44
heroImages:
55
- image: ./images/hero.webp
6+
linkTarget: "https://archive.org/details/processing-community-catalog-2021"
67
altText: Lauren Lee McCarthy reading the Processing Community Catalog.
78
caption: "Lauren Lee McCarthy reading the Processing Community Catalog. Photo credit: Maximo Xtravaganza."
89
- image: ./images/p5for50plus.webp
10+
linkTarget: ""
911
altText: Inhwa Yeom teaching p5.js to people aged 50+.
1012
caption: "Coding Club for people aged 50+ in Korea, led by Inhwa Yeom."
1113
- image: ./images/salon-2.webp
14+
linkTarget: ""
1215
altText: Qianqian Ye holding a mic next to a big t.v. screen that has a grid of p5.js contributor photos on it.
1316
caption: "Qianqian Ye introducing 600+ p5.js contributors at p5.js Community Salon. Photo credit: Ziyuan Lin."
1417
- image: ./images/ccfest2018.webp
18+
linkTarget: ""
1519
altText: p5.js workshop participants coding while showing their projects on screen.
1620
caption: "p5.js workshop at CC Fest NYC at ITP-NYU in November 2018."
1721
- image: ./images/tunapanda.webp
22+
linkTarget: ""
1823
altText: Students learning to code while checking a p5.js book.
1924
caption: "p5.js workshop at Tunapanda Institute in Nairobi. Photo credit: Tunapanda Institute."
2025
- image: ./images/contributor-conf-2019_10.webp
26+
linkTarget: ""
2127
altText: Person with a microphone speaking to fellow participants in front of text that reads p5.js will not add any new features except those that increase access.
2228
caption: "p5.js will not add any new features except those that increase access."
2329
- image: ./images/contributor-conf-2015.webp
30+
linkTarget: ""
2431
altText: Participants jump, smile and throw their hands in the air on a green lawn.
2532
caption: "p5.js Contributors Conference 2015."
2633
- image: ./images/contributor-conf-2019-17.webp
34+
linkTarget: ""
2735
altText: Participants sit around a table with their laptops and observe code on a screen.
2836
caption: "p5.js Contributors Conference 2019."
37+
- image: ./images/hello-p5-2024.png
38+
linkTarget: "https://hello.p5js.org"
39+
altText: Eight portrait photos of p5 contributors overlaid by the text "Hello, p5.js"
40+
caption: "Find out how to get started with animation, audio, WebGL, accessibility, and contribution to p5.js in this interactive video:"
2941
referenceHeaderText: Explore the p5.js library reference
3042
examplesHeaderText: Learn p5.js with examples
3143
communityHeaderText: See the p5.js community in action
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
name: Beau Muylle
2-
url: https://github.com/beaumu
1+
name: beau-muylle
2+
url: https://github.com/beau-muylle
33
category: contributor

src/content/people/en/cassie-tarakajian.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ category: mentor
44
image: ../images/cassie-tarakajian.jpeg
55
imageAlt: Headshot of Cassie Tarakajian, a light-skinned Armenian-American non-binary person with a neutral face, with a brown mullet, wearing a green shirt against a mauve background.
66
role: p5.js Editor Creator, 2016-2022; p5.js Editor Mentor, 2022-present
7-
order: 4
7+
order: 5
88
blurb: >
99
Cassie Tarakajian (they/them) is an Armenian-American educator, technologist, and artist based in Chicago, IL. Their work centers around creating accessible and inclusive tools for making art, and interrogating the relationship between technology and pop culture. They are the creator of the p5.js Editor, an open-source in-browser code editor for creative coding in p5.js, supported by the Processing Foundation. They are also an adjunct professor at New York University's Interactive Telecommunications Program (NYU ITP), teaching creative coding, web development, and making cursed content. They are a Y8 and Y9 member of NEW INC’s Art + Code Track, and in the past have held residencies at NYU ITP, Pioneer Works, and the STUDIO for Creative Inquiry at Carnegie Mellon.

src/content/people/en/cypress-masso.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ image: ../images/cypress-masso.png
44
imageAlt: A photo of cypress. She is a light olive skinned person with medium length wavy brown hair wearing a loose white collared shirt.
55
url: https://outofambit.com
66
role: p5.js Co-Lead 2021-22, p5.js Mentor 2022-2023, p5.js Fellow 2019
7-
order: 6
7+
order: 7
88
blurb: >
99
cypress evelyn masso (she/they) is a person (all the time), a tech worker (on weekdays), and a poet (on weekends). She has been contributing to p5.js (on-and-off) since 2016, was a p5.js co-lead for 2021, and then was a mentor for 2022. Originally from Ohio, she currently lives on unceded Kizh land (near Los Angeles) with a collection of moody houseplants. She enjoys dancing, babysitting her two godsons, and hanging out by the Los Angeles River.

src/content/people/en/dhanush.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: dhanush
2+
url: https://github.com/Dhanush111
3+
category: contributor
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: Jordan Philyaw
2+
url: http://jordanphilyaw.com
3+
category: contributor

src/content/people/en/kenneth-lim.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ category: mentor
44
image: ../images/kenneth-lim.jpeg
55
imageAlt: WRITE ALT TEXT HERE
66
role: p5.js Mentor, 2023-present
7-
order: 3
7+
order: 4
88
blurb: >
99
Kenneth Lim (he/him) is an interaction designer and creative coder working with text and language in
1010
all its forms. His work and research focuses on translations, machine understanding of language,
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Kit Kuksenok
2+
url: https://xnze.ro
3+
category: lead
4+
image: ../images/kit-kuksenok.jpg
5+
imageAlt: A photograph of a white non-binary person with short blonde hair. They stand against a background of a canal and greenery.
6+
role: p5.js Lead, 2024-present
7+
order: 1
8+
blurb: >
9+
Kit Kuksenok (they/it) is an artist, writer, and coder. Since first learning to code in 2002, they have worked as a systems integrator, web developer, software engineer, data analyst, and lecturer in computer science. Their art/writing is informed by this proximity to technology and its variegated uses; they’ve taught numerous courses exploring the role of technology in society through algorithmic art. They hold a PhD (2016) in Computer Science and Engineering from the University of Washington (Seattle). Born in Ukraine, and having lived both in the US and in Germany, Kit speaks English, Ukrainian, Russian, and some German. Photo credit: Cora EF Hamilton.

src/content/people/en/lauren-mccarthy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ category: alumni
44
image: ../images/lauren-mccarthy.jpeg
55
imageAlt: A Chinese-American woman with short dark hair standing in front of device sculptures.
66
role: p5.js Creator and Lead, 2013-2020; p5.js mentor 2020-2021
7-
order: 5
7+
order: 6
88
blurb: >
99
Lauren Lee McCarthy (she/they) is an artist having social relationships in the midst of
1010
automation, surveillance, and algorithmic living. She has received grants and residencies

src/content/people/en/ma-haidong.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: ma haidong
2+
url: http://caad.xyz
3+
category: contributor

0 commit comments

Comments
 (0)