Skip to content

Commit dc63604

Browse files
authored
lab/face-sensing: add blockIconURI by @man-o-valor (TurboWarp#2290)
thanks @man-o-valor
1 parent a00fa8e commit dc63604

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎extensions/lab/face-sensing.js‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,31 @@
278278

279279
checkIfShouldTurnOnVideoForFirstRun();
280280

281+
// made by https://scratch.mit.edu/users/man-o-valor/
282+
const blockIconURI = `data:image/svg+xml;,${encodeURIComponent(`
283+
<svg xmlns="http://www.w3.org/2000/svg" width="79.639" height="79.771">
284+
<g stroke-miterlimit="10"><path fill="none" stroke="#0b8e69" stroke-width="9.5" d="M18.691 39.915c0-11.668 9.46-21.128 21.128-21.128 11.67 0 21.129 9.46 21.129 21.128 0 11.67-9.46 21.129-21.129 21.129-11.668 0-21.128-9.46-21.128-21.129z"/>
285+
<path fill="none" stroke="#0b8e69" stroke-linecap="round" stroke-width="10" d="M16.204 53.288s-1.038 5.33-2.207 6.997c-1.161 1.657-4.782 2.973-4.782 2.973M23.234 63.258s-3.62-1.316-4.782-2.973c-1.168-1.667-2.207-6.997-2.207-6.997M9.215 63.317s3.621 1.316 4.782 2.973c1.169 1.667 2.207 6.997 2.207 6.997"/>
286+
<path fill="none" stroke="#0b8e69" stroke-linecap="round" stroke-width="10" d="M16.245 73.037s1.04-5.33 2.207-6.997c1.162-1.657 4.782-2.973 4.782-2.973"/>
287+
<path fill="none" stroke="#ffbf00" stroke-linecap="round" stroke-width="5" d="M16.204 53.499s-1.038 5.33-2.207 6.997c-1.161 1.656-4.782 2.973-4.782 2.973M23.234 63.47s-3.62-1.318-4.782-2.974c-1.168-1.667-2.207-6.997-2.207-6.997M9.215 63.528s3.621 1.316 4.782 2.973c1.169 1.667 2.207 6.997 2.207 6.997"/>
288+
<path fill="none" stroke="#ffbf00" stroke-linecap="round" stroke-width="5" d="M16.245 73.287s1.04-5.33 2.207-6.997c1.162-1.657 4.782-2.973 4.782-2.973"/>
289+
<path fill="#ffbf00" d="m11.406 63.608 4.84-6.904 4.839 6.904-4.84 6.904z"/>
290+
<g fill="none" stroke="#0b8e69" stroke-linecap="round" stroke-width="5">
291+
<path d="M2.537 2.56h16.92M2.5 19.59V2.67"/></g><g fill="none" stroke="#0b8e69" stroke-linecap="round" stroke-width="5">
292+
<path d="M77.102 77.271h-16.92M77.139 60.241v16.92"/></g><path fill="#0b8e69" stroke="#fff" stroke-width="5" d="M18.691 39.915c0-11.668 9.46-21.128 21.128-21.128 11.67 0 21.129 9.46 21.129 21.128 0 11.67-9.46 21.129-21.129 21.129-11.668 0-21.128-9.46-21.128-21.129z"/>
293+
<path fill="none" stroke="#fff" stroke-linecap="round" stroke-width="5" d="M48.47 45.217s-3.828 4.746-8.744 4.65c-5.376-.104-8.185-4.65-8.185-4.65M31.646 34.323v1.418M47.993 35.741v-1.418"/>
294+
<path fill="none" stroke="#0b8e69" stroke-linecap="round" stroke-width="10" d="M62.56 5s-1.428 7.165-3.032 9.405c-1.595 2.227-6.568 3.997-6.568 3.997M72.214 18.402s-4.972-1.77-6.567-3.997C64.042 12.165 62.615 5 62.615 5M52.96 18.48s4.973 1.77 6.568 3.997c1.604 2.24 3.031 9.405 3.031 9.405M62.615 31.882s1.427-7.165 3.032-9.405c1.595-2.227 6.567-3.997 6.567-3.997"/>
295+
<path fill="none" stroke="#ffbf00" stroke-linecap="round" stroke-width="5" d="M62.56 5s-1.428 7.165-3.032 9.405c-1.595 2.227-6.568 3.997-6.568 3.997M72.214 18.402s-4.972-1.77-6.567-3.997C64.042 12.165 62.615 5 62.615 5M52.96 18.48s4.973 1.77 6.568 3.997c1.604 2.24 3.031 9.405 3.031 9.405M62.615 31.882s1.427-7.165 3.032-9.405c1.595-2.227 6.567-3.997 6.567-3.997"/>
296+
<path fill="#ffbf00" d="m55.968 18.872 6.647-9.28 6.647 9.28-6.647 9.28z"/>
297+
</g>
298+
</svg>`)}`;
299+
281300
class FaceSensing {
282301
getInfo() {
283302
return {
284303
id: "faceSensing",
285304
name: Scratch.translate("Face Sensing"),
305+
blockIconURI,
286306

287307
blocks: [
288308
...(detector

0 commit comments

Comments
 (0)