Skip to content

Commit 310ae76

Browse files
authored
Merge branch 'main' into all-contributors/add-lab-mediaArts
2 parents 2f0c2b5 + 608d7dc commit 310ae76

File tree

3 files changed

+93
-4
lines changed

3 files changed

+93
-4
lines changed

.all-contributorsrc

+75-1
Original file line numberDiff line numberDiff line change
@@ -6233,7 +6233,8 @@
62336233
"avatar_url": "https://avatars.githubusercontent.com/u/7389189?v=4",
62346234
"profile": "https://github.com/AaratiAkkapeddi",
62356235
"contributions": [
6236-
"code"
6236+
"code",
6237+
"ideas"
62376238
]
62386239
},
62396240
{
@@ -6693,6 +6694,15 @@
66936694
"test"
66946695
]
66956696
},
6697+
{
6698+
"login": "ChloeYanYan",
6699+
"name": "Chloe Yan",
6700+
"avatar_url": "https://avatars.githubusercontent.com/u/181019103?v=4",
6701+
"profile": "https://github.com/ChloeYanYan",
6702+
"contributions": [
6703+
"doc"
6704+
]
6705+
},
66966706
{
66976707
"login": "webermayank",
66986708
"name": "Mayank Verma",
@@ -6710,6 +6720,70 @@
67106720
"contributions": [
67116721
"ideas"
67126722
]
6723+
},
6724+
{
6725+
"login": "roxi09",
6726+
"name": "roxi09",
6727+
"avatar_url": "https://avatars.githubusercontent.com/u/175943104?v=4",
6728+
"profile": "https://github.com/Roxi09",
6729+
"contributions": [
6730+
"ideas"
6731+
]
6732+
},
6733+
{
6734+
"login": "jlliu",
6735+
"name": "Jackie Liu",
6736+
"avatar_url": "https://avatars.githubusercontent.com/u/8304517?v=4",
6737+
"profile": "https://github.com/jlliu",
6738+
"contributions": [
6739+
"ideas"
6740+
]
6741+
},
6742+
{
6743+
"login": "re7l",
6744+
"name": "Carrie Wang",
6745+
"avatar_url": "https://avatars.githubusercontent.com/u/19353655?v=4",
6746+
"profile": "https://github.com/re7l",
6747+
"contributions": [
6748+
"ideas"
6749+
]
6750+
},
6751+
{
6752+
"login": "himanshuukholiya",
6753+
"name": "Himanshu Kholiya",
6754+
"avatar_url": "https://avatars.githubusercontent.com/u/128818464?v=4",
6755+
"profile": "https://github.com/himanshuukholiya",
6756+
"contributions": [
6757+
"code"
6758+
]
6759+
},
6760+
{
6761+
"login": "mclark414",
6762+
"name": "mclark414",
6763+
"avatar_url": "https://avatars.githubusercontent.com/u/26391144?v=4",
6764+
"profile": "https://github.com/mclark414",
6765+
"contributions": [
6766+
"ideas"
6767+
]
6768+
},
6769+
{
6770+
"login": "mxramsey",
6771+
"name": "Mx. Ramsey",
6772+
"avatar_url": "https://avatars.githubusercontent.com/u/161327383?v=4",
6773+
"profile": "https://github.com/mxramsey",
6774+
"contributions": [
6775+
"ideas"
6776+
]
6777+
},
6778+
{
6779+
"login": "franolichdesign",
6780+
"name": "Franolich Design",
6781+
"avatar_url": "https://avatars.githubusercontent.com/u/74784668?v=4",
6782+
"profile": "https://github.com/franolichdesign",
6783+
"contributions": [
6784+
"bug",
6785+
"code"
6786+
]
67136787
}
67146788
],
67156789
"repoType": "github",

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ We recognize all types of contributions. This project follows the [all-contribut
10441044
<td align="center" valign="top" width="16.66%"><a href="https://github.com/c-dacanay"><img src="https://avatars.githubusercontent.com/u/54914834?v=4?s=120" width="120px;" alt="c-dacanay"/><br /><sub><b>c-dacanay</b></sub></a><br /><a href="#design-c-dacanay" title="Design">🎨</a> <a href="#eventOrganizing-c-dacanay" title="Event Organizing">📋</a> <a href="#example-c-dacanay" title="Examples">💡</a></td>
10451045
<td align="center" valign="top" width="16.66%"><a href="https://github.com/mathewpan2"><img src="https://avatars.githubusercontent.com/u/112679001?v=4?s=120" width="120px;" alt="mathewpan2"/><br /><sub><b>mathewpan2</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=mathewpan2" title="Code">💻</a></td>
10461046
<td align="center" valign="top" width="16.66%"><a href="https://github.com/cog25"><img src="https://avatars.githubusercontent.com/u/74242561?v=4?s=120" width="120px;" alt="cog25"/><br /><sub><b>cog25</b></sub></a><br /><a href="#translation-cog25" title="Translation">🌍</a></td>
1047-
<td align="center" valign="top" width="16.66%"><a href="https://github.com/AaratiAkkapeddi"><img src="https://avatars.githubusercontent.com/u/7389189?v=4?s=120" width="120px;" alt="Aarati Akkapeddi "/><br /><sub><b>Aarati Akkapeddi </b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=AaratiAkkapeddi" title="Code">💻</a></td>
1047+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/AaratiAkkapeddi"><img src="https://avatars.githubusercontent.com/u/7389189?v=4?s=120" width="120px;" alt="Aarati Akkapeddi "/><br /><sub><b>Aarati Akkapeddi </b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=AaratiAkkapeddi" title="Code">💻</a> <a href="#ideas-AaratiAkkapeddi" title="Ideas, Planning, & Feedback">🤔</a></td>
10481048
</tr>
10491049
<tr>
10501050
<td align="center" valign="top" width="16.66%"><a href="https://mayaarguelles.com/"><img src="https://avatars.githubusercontent.com/u/29130029?v=4?s=120" width="120px;" alt="Maya Arguelles"/><br /><sub><b>Maya Arguelles</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=mayaarguelles" title="Code">💻</a></td>
@@ -1111,7 +1111,17 @@ We recognize all types of contributions. This project follows the [all-contribut
11111111
<td align="center" valign="top" width="16.66%"><a href="https://bojidar-bg.dev/"><img src="https://avatars.githubusercontent.com/u/5276727?v=4?s=120" width="120px;" alt="Bojidar Marinov"/><br /><sub><b>Bojidar Marinov</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=bojidar-bg" title="Code">💻</a> <a href="https://github.com/processing/p5.js/commits?author=bojidar-bg" title="Tests">⚠️</a></td>
11121112
</tr>
11131113
<tr>
1114+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/ChloeYanYan"><img src="https://avatars.githubusercontent.com/u/181019103?v=4?s=120" width="120px;" alt="Chloe Yan"/><br /><sub><b>Chloe Yan</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=ChloeYanYan" title="Documentation">📖</a></td>
11141115
<td align="center" valign="top" width="16.66%"><a href="https://github.com/webermayank"><img src="https://avatars.githubusercontent.com/u/111176033?v=4?s=120" width="120px;" alt="Mayank Verma"/><br /><sub><b>Mayank Verma</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=webermayank" title="Code">💻</a></td>
1116+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/jlliu"><img src="https://avatars.githubusercontent.com/u/8304517?v=4?s=120" width="120px;" alt="Jackie Liu"/><br /><sub><b>Jackie Liu</b></sub></a><br /><a href="#ideas-jlliu" title="Ideas, Planning, & Feedback">🤔</a></td>
1117+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/re7l"><img src="https://avatars.githubusercontent.com/u/19353655?v=4?s=120" width="120px;" alt="Carrie Wang"/><br /><sub><b>Carrie Wang</b></sub></a><br /><a href="#ideas-re7l" title="Ideas, Planning, & Feedback">🤔</a></td>
1118+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/himanshuukholiya"><img src="https://avatars.githubusercontent.com/u/128818464?v=4?s=120" width="120px;" alt="Himanshu Kholiya"/><br /><sub><b>Himanshu Kholiya</b></sub></a><br /><a href="https://github.com/processing/p5.js/commits?author=himanshuukholiya" title="Code">💻</a></td>
1119+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/mclark414"><img src="https://avatars.githubusercontent.com/u/26391144?v=4?s=120" width="120px;" alt="mclark414"/><br /><sub><b>mclark414</b></sub></a><br /><a href="#ideas-mclark414" title="Ideas, Planning, & Feedback">🤔</a></td>
1120+
</tr>
1121+
<tr>
1122+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/mxramsey"><img src="https://avatars.githubusercontent.com/u/161327383?v=4?s=120" width="120px;" alt="Mx. Ramsey"/><br /><sub><b>Mx. Ramsey</b></sub></a><br /><a href="#ideas-mxramsey" title="Ideas, Planning, & Feedback">🤔</a></td>
1123+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/franolichdesign"><img src="https://avatars.githubusercontent.com/u/74784668?v=4?s=120" width="120px;" alt="Franolich Design"/><br /><sub><b>Franolich Design</b></sub></a><br /><a href="https://github.com/processing/p5.js/issues?q=author%3Afranolichdesign" title="Bug reports">🐛</a> <a href="https://github.com/processing/p5.js/commits?author=franolichdesign" title="Code">💻</a></td>
1124+
<td align="center" valign="top" width="16.66%"><a href="https://github.com/Roxi09"><img src="https://avatars.githubusercontent.com/u/175943104?v=4?s=120" width="120px;" alt="roxi09"/><br /><sub><b>roxi09</b></sub></a><br /><a href="#ideas-roxi09" title="Ideas, Planning, & Feedback">🤔</a></td>
11151125
<td align="center" valign="top" width="16.66%"><a href="https://github.com/lab-mediaArts"><img src="https://avatars.githubusercontent.com/u/179049131?v=4?s=120" width="120px;" alt="Lauren Berrios"/><br /><sub><b>Lauren Berrios</b></sub></a><br /><a href="#ideas-lab-mediaArts" title="Ideas, Planning, & Feedback">🤔</a></td>
11161126
</tr>
11171127
</tbody>

src/accessibility/outputs.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,13 @@ p5.prototype._getPos = function (x, y) {
579579
function _canvasLocator(args, canvasWidth, canvasHeight) {
580580
const noRows = 10;
581581
const noCols = 10;
582-
let locX = Math.floor(args[0] / canvasWidth * noRows);
583-
let locY = Math.floor(args[1] / canvasHeight * noCols);
582+
let x = args[0];
583+
let y = args[1];
584+
if (x < 0 || x >= canvasWidth || y < 0 || y >= canvasHeight) {
585+
return null;
586+
}
587+
let locX = Math.floor(x / canvasWidth * noRows);
588+
let locY = Math.floor(y / canvasHeight * noCols);
584589
if (locX === noRows) {
585590
locX = locX - 1;
586591
}

0 commit comments

Comments
 (0)