Skip to content

Commit 1c8ee99

Browse files
authored
Merge pull request #819 from processing/more-libraries
Add libraries, fix bug with old featured ones not getting cycled
2 parents 9513801 + 774f7a5 commit 1c8ee99

File tree

5 files changed

+25
-2
lines changed

5 files changed

+25
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: p5.transparency
2+
description: In WebGL mode, you may have noticed that transparent images still occlude other objects as if they're opaque. This library provides helper functions you can surround each item with to make your items blend better.
3+
category: 3d
4+
sourceUrl: https://github.com/davepagurek/p5.transparency
5+
featuredImage: ../images/p5.transparency.png
6+
featuredImageAlt: Semitransparent 3D bubbles
7+
author:
8+
name: Dave Pagurek
9+
url: https://www.davepagurek.com
10+
npm: 'p5.transparency'
11+
license: MIT
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: p5.woff2
2+
description: An addon to add support for WebGL rendering, textToPoints, and related text methods for woff2 fonts. Load a Google Fonts URL and you're good to go!
3+
category: utils
4+
sourceUrl: https://github.com/davepagurek/p5.transparency
5+
featuredImage: ../images/p5.woff2.png
6+
featuredImageAlt: The text "The quick brown fox jumps over the lazy dog" repeated in different weights
7+
author:
8+
name: Dave Pagurek
9+
url: https://www.davepagurek.com
10+
npm: 'p5.woff2'
11+
license: MIT
12+
featured: true
Loading
176 KB
Loading

src/layouts/CommunityLayout.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const eventsLimit = 9;
2626
const sketches = Astro.props.sketches.slice(0, sketchesLimit),
2727
libraries = Astro.props.libraries
2828
.filter((lib) => lib.data.featured)
29-
.slice(0, librariesLimit)
30-
.sort(() => (Math.random() < 0.5 ? -1 : 1)),
29+
.sort(() => (Math.random() < 0.5 ? -1 : 1))
30+
.slice(0, librariesLimit),
3131
events = Astro.props.pastEvents.slice(0, eventsLimit);
3232
const currentLocale = getCurrentLocale(Astro.url.pathname);
3333
const t = await getUiTranslator(currentLocale);

0 commit comments

Comments
 (0)