Skip to content

Commit

Permalink
2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Sep 27, 2024
1 parent e31ab85 commit df3dec9
Show file tree
Hide file tree
Showing 20 changed files with 1,582 additions and 306 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ CNAME
assets
demos
dev
fonts
home
lang
learn
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,13 @@ Unminified:

- p5.js **5112kb** ⚠️
- p5.sound.js 488kb
- q5.js 93kb
- q5.js 110kb

Minified:

- p5.min.js 1034kb ⚠️
- p5.sound.min.js 200kb
- q5.min.js **61kb** 🎉
- q5.min.js **70kb** 🎉

## Benchmarks

Expand Down Expand Up @@ -404,6 +404,9 @@ p5.js is licensed under the LGPLv2, the two small sections of p5' code directly

## Credits

q5-webgpu msdf text rendering:
https://webgpu.github.io/webgpu-samples/?sample=textRenderingMsdf

q5-webgpu blendMode:
https://webgpufundamentals.org/webgpu/lessons/webgpu-transparency.html

Expand Down
1 change: 1 addition & 0 deletions fonts/YaHei-256-msdf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pages":["YaHei-256.png"],"chars":"id index char width height xoffset yoffset xadvance chnl x y page\n106 80 \"j\" 16 48 -6 3 11 15 0 0 0\n87 61 \"W\" 46 36 -1 4 43 15 0 49 0\n81 55 \"Q\" 35 45 0 4 34 15 17 0 0\n64 38 \"@\" 40 40 2 4 43 15 0 86 0\n98 72 \"b\" 25 38 2 2 27 15 0 127 0\n100 74 \"d\" 25 38 0 2 27 15 0 166 0\n102 76 \"f\" 18 38 -1 2 15 15 0 205 0\n103 77 \"g\" 25 38 0 13 27 15 19 205 0\n104 78 \"h\" 23 38 2 2 26 15 26 127 0\n107 81 \"k\" 23 38 2 2 23 15 26 166 0\n108 82 \"l\" 8 38 2 2 11 15 41 86 0\n112 86 \"p\" 25 38 2 13 27 15 47 46 0\n113 87 \"q\" 25 38 0 13 27 15 53 0 0\n48 22 \"0\" 25 37 0 4 25 15 45 205 0\n51 25 \"3\" 23 37 1 4 25 15 50 85 0\n54 28 \"6\" 24 37 0 4 25 15 73 39 0\n56 30 \"8\" 24 37 0 4 25 15 79 0 0\n57 31 \"9\" 24 37 0 4 25 15 50 123 0\n67 41 \"C\" 28 37 0 4 28 15 50 161 0\n71 45 \"G\" 30 37 0 4 31 15 74 77 0\n77 51 \"M\" 37 36 2 4 41 15 98 38 0\n79 53 \"O\" 34 37 0 4 34 15 104 0 0\n83 57 \"S\" 24 37 1 4 24 15 75 115 0\n105 79 \"i\" 9 37 1 3 11 15 71 199 0\n109 83 \"m\" 37 27 2 13 39 15 79 153 0\n121 95 \"y\" 26 37 -2 13 22 15 100 115 0\n33 7 \"!\" 9 36 2 4 13 15 105 75 0\n49 23 \"1\" 22 36 2 4 25 15 115 75 0\n50 24 \"2\" 24 36 0 4 25 15 136 38 0\n52 26 \"4\" 27 36 -2 4 25 15 139 0 0\n53 27 \"5\" 22 36 2 4 25 15 81 181 0\n55 29 \"7\" 25 36 0 4 25 15 81 218 0\n65 39 \"A\" 33 36 -2 4 30 15 104 181 0\n66 40 \"B\" 24 36 2 4 26 15 107 218 0\n68 42 \"D\" 30 36 2 4 32 15 132 218 0\n69 43 \"E\" 21 36 2 4 23 15 127 112 0\n70 44 \"F\" 20 36 2 4 22 15 138 75 0\n72 46 \"H\" 28 36 2 4 32 15 138 149 0\n73 47 \"I\" 14 36 -1 4 12 15 149 112 0\n74 48 \"J\" 16 36 -2 4 17 15 159 75 0\n75 49 \"K\" 27 36 2 4 27 15 164 112 0\n76 50 \"L\" 21 36 2 4 22 15 161 37 0\n78 52 \"N\" 30 36 2 4 34 15 167 0 0\n80 54 \"P\" 24 36 2 4 26 15 176 74 0\n82 56 \"R\" 27 36 2 4 27 15 183 37 0\n84 58 \"T\" 26 36 -1 4 24 15 198 0 0\n85 59 \"U\" 28 36 2 4 31 15 225 0 0\n86 60 \"V\" 32 36 -2 4 28 15 211 37 0\n88 62 \"X\" 30 36 -1 4 27 15 201 74 0\n89 63 \"Y\" 29 36 -2 4 25 15 163 186 0\n90 64 \"Z\" 28 36 -1 4 26 15 167 149 0\n119 93 \"w\" 36 27 -1 13 33 15 163 223 0\n116 90 \"t\" 18 34 -1 7 16 15 193 186 0\n58 32 \":\" 9 28 0 13 10 15 127 149 0\n97 71 \"a\" 22 28 0 13 23 15 232 74 0\n99 73 \"c\" 21 28 0 13 21 15 138 186 0\n101 75 \"e\" 24 28 0 13 24 15 232 103 0\n111 85 \"o\" 27 28 0 13 27 15 200 221 0\n115 89 \"s\" 19 28 0 13 19 15 212 111 0\n110 84 \"n\" 23 27 2 13 26 15 232 132 0\n114 88 \"r\" 16 27 2 13 16 15 192 111 0\n117 91 \"u\" 23 27 1 13 26 15 228 160 0\n118 92 \"v\" 26 27 -2 13 22 15 228 188 0\n120 94 \"x\" 24 27 -1 13 21 15 228 216 0\n122 96 \"z\" 23 27 -1 13 21 15 196 140 0\n45 19 \"-\" 16 7 1 22 18 15 0 244 0\n44 18 \",\" 10 15 -1 31 10 15 220 140 0\n39 13 \"'\" 8 14 1 4 11 15 71 237 0\n34 8 \"\\\"\" 14 14 2 4 18 15 212 168 0\n46 20 \".\" 9 9 0 31 10 15 117 153 0","info":{"face":"YaHei-256","size":42},"common":{"lineHeight":45,"base":36,"scaleW":256,"scaleH":256},"kernings":"first second amount\n39 114 -1\n39 115 -1\n34 114 -1\n34 115 -1\n65 44 1\n65 67 -1\n65 71 -1\n65 74 2\n65 79 -1\n65 84 -3\n65 85 -1\n65 86 -3\n65 87 -2\n65 89 -3\n65 90 1\n65 116 -1\n65 118 -1\n65 119 -1\n65 121 -1\n66 84 -2\n66 89 -1\n67 67 -1\n67 71 -1\n67 79 -1\n67 81 -1\n68 44 -3\n68 46 -3\n68 65 -1\n68 84 -2\n68 88 -1\n68 90 -1\n69 65 0\n69 74 1\n69 84 0\n69 87 1\n69 88 0\n70 44 -3\n70 46 -3\n70 65 -3\n70 74 -1\n70 83 -1\n70 84 0\n70 97 -2\n70 102 0\n71 84 -1\n71 86 -1\n71 121 -1\n74 44 -2\n74 46 -2\n74 65 -1\n74 74 -1\n74 97 -1\n75 44 1\n75 67 -2\n75 71 -2\n75 74 2\n75 79 -2\n75 81 -2\n75 88 1\n75 90 1\n75 99 -1\n75 100 -1\n75 101 -1\n75 103 -1\n75 111 -1\n75 113 -1\n75 116 -1\n75 118 -2\n75 119 -1\n75 121 -2\n76 65 1\n76 67 -1\n76 71 -1\n76 74 2\n76 79 -2\n76 81 -2\n76 84 -3\n76 85 -1\n76 86 -3\n76 87 -1\n76 89 -3\n76 90 1\n76 116 -1\n76 118 -2\n76 119 -1\n76 121 -2\n79 44 -2\n79 46 -2\n79 65 -1\n79 74 0\n79 84 -2\n79 88 -1\n79 89 -1\n79 90 -1\n80 44 -7\n80 46 -7\n80 65 -4\n80 71 0\n80 74 -3\n80 87 1\n80 88 -1\n80 97 -1\n80 99 -2\n80 100 -2\n80 101 -2\n80 103 -2\n80 111 -2\n80 113 -2\n81 44 -2\n81 46 -3\n81 65 -1\n81 84 -2\n81 88 -1\n81 89 0\n81 90 -1\n82 67 -1\n82 71 -1\n82 74 1\n82 79 0\n82 81 0\n82 84 -1\n82 89 -1\n82 99 -1\n82 100 -1\n82 101 -1\n82 103 -1\n82 111 -1\n82 113 -1\n83 116 -1\n83 118 -1\n83 119 -1\n83 121 -1\n84 44 -3\n84 46 -4\n84 58 -1\n84 65 -3\n84 67 -2\n84 71 -2\n84 74 -3\n84 79 -2\n84 81 -2\n84 84 1\n84 86 1\n84 87 1\n84 88 0\n84 89 1\n84 97 -5\n84 99 -5\n84 100 -5\n84 101 -5\n84 102 -2\n84 103 -5\n84 109 -4\n84 110 -4\n84 111 -5\n84 112 -4\n84 113 -5\n84 114 -4\n84 115 -3\n84 117 -4\n84 118 -2\n84 119 -3\n84 120 -4\n84 121 -3\n84 122 -3\n85 65 -1\n86 44 -5\n86 46 -5\n86 65 -3\n86 67 -1\n86 71 -1\n86 74 -2\n86 79 0\n86 81 -1\n86 83 -1\n86 84 1\n86 97 -3\n86 99 -3\n86 100 -3\n86 101 -3\n86 103 -3\n86 109 -2\n86 110 -2\n86 111 -3\n86 112 -2\n86 113 -3\n86 114 -2\n86 115 -1\n86 117 -2\n87 44 -3\n87 46 -3\n87 65 -2\n87 84 1\n87 97 -2\n87 99 -1\n87 100 -1\n87 101 -1\n87 103 -1\n87 111 -1\n87 113 -1\n88 44 1\n88 46 1\n88 67 -1\n88 71 -1\n88 74 2\n88 79 -1\n88 81 -1\n88 84 1\n89 44 -4\n89 46 -4\n89 65 -4\n89 67 -1\n89 71 -1\n89 74 -1\n89 79 -1\n89 81 -1\n89 83 -1\n89 84 1\n89 97 -4\n89 99 -4\n89 100 -4\n89 101 -4\n89 102 -1\n89 103 -4\n89 109 -3\n89 110 -3\n89 111 -4\n89 112 -3\n89 113 -4\n89 114 -3\n89 115 -3\n89 117 -3\n90 74 2\n90 84 1\n90 121 -1\n98 97 -1\n98 102 0\n98 120 -1\n99 74 2\n99 84 -2\n99 89 -2\n101 39 -2\n101 34 -2\n102 44 -3\n102 45 -2\n102 46 -3\n102 58 2\n102 98 0\n102 104 0\n102 116 1\n102 118 1\n102 119 1\n102 120 0\n102 121 1\n103 106 1\n106 106 1\n107 44 2\n107 45 -3\n107 46 2\n107 58 2\n107 99 -1\n107 100 -1\n107 101 -1\n107 103 -1\n107 111 -1\n107 113 -1\n107 116 0\n110 39 -2\n110 34 -2\n111 39 -3\n111 34 -3\n111 97 -1\n111 102 -1\n111 120 -1\n112 97 -1\n112 102 -1\n112 120 -1\n113 106 2\n114 44 -4\n114 45 -3\n114 46 -4\n114 58 2\n114 99 -1\n114 100 -1\n114 101 -1\n114 102 1\n114 103 -1\n114 109 0\n114 110 0\n114 111 -1\n114 113 -1\n114 115 0\n114 116 1\n114 118 2\n114 119 2\n114 120 1\n114 121 2\n114 122 1\n116 45 -3\n116 99 -1\n116 100 -1\n116 101 0\n116 103 0\n116 111 0\n116 113 0\n116 120 1\n117 39 -1\n117 34 -1\n118 44 -3\n118 46 -3\n118 97 -1\n118 99 0\n118 100 0\n118 101 0\n118 103 0\n118 111 0\n118 113 0\n119 44 -2\n119 46 -2\n119 99 0\n119 100 0\n119 101 0\n119 103 0\n119 111 0\n119 113 0\n120 99 0\n120 100 0\n120 101 0\n120 103 0\n120 111 0\n120 113 0\n121 39 1\n121 34 1\n121 44 -2\n121 46 -3\n121 99 0\n121 100 0\n121 101 0\n121 102 0\n121 103 0\n121 111 0\n121 113 0\n121 116 0"}
Binary file added fonts/YaHei-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit df3dec9

Please sign in to comment.