Skip to content

Update Exercise “19135d2e-0e8d-418c-939d-18b0e62215ff” #6615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 126 additions & 5 deletions content/src/exercises/19135d2e-0e8d-418c-939d-18b0e62215ff.json
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,10 @@
],
"asyncDuration": 7,
"link": "https://aware.29k.org/open-up-to-compassion",
"id": "19135d2e-0e8d-418c-939d-18b0e62215ff"
"id": "19135d2e-0e8d-418c-939d-18b0e62215ff",
"card": {
"imageBackgroundColor": ""
}
},
"cs": {
"tags": [
Expand All @@ -577,7 +580,10 @@
],
"asyncDuration": 7,
"link": "https://aware.29k.org/open-up-to-compassion",
"id": "19135d2e-0e8d-418c-939d-18b0e62215ff"
"id": "19135d2e-0e8d-418c-939d-18b0e62215ff",
"card": {
"imageBackgroundColor": ""
}
},
"nl": {
"tags": [
Expand All @@ -586,9 +592,124 @@
],
"asyncDuration": 7,
"link": "https://aware.29k.org/open-up-to-compassion",
"id": "19135d2e-0e8d-418c-939d-18b0e62215ff"
"id": "19135d2e-0e8d-418c-939d-18b0e62215ff",
"card": {
"imageBackgroundColor": ""
}
},
"es": {
"id": "19135d2e-0e8d-418c-939d-18b0e62215ff"
"slides": [
{
"type": "host",
"hostNotes": []
},
{
"type": "content",
"hostNotes": [],
"content": {
"lottie": {
"subtitles": "https://res.cloudinary.com/cupcake-29k/raw/upload/v1738512680/Spanish/Subtitles%20SRT/Abrirse_a_la_Compasio%CC%81n_n0qkzm.srt",
"audio": "https://res.cloudinary.com/cupcake-29k/video/upload/v1738506643/Spanish/Audio%20MP3/AbrirseAlaCompasion_qnx00z.mp3",
"durationTimer": true,
"source": "https://res.cloudinary.com/cupcake-29k/raw/upload/t_card_image/v1676977421/Lottie/audio_meditation_default_black_default_omemwt.json"
}
}
},
{
"type": "reflection",
"hostNotes": [],
"content": {
"heading": "",
"lottie": {
"durationTimer": true,
"duration": 59,
"source": "https://res.cloudinary.com/cupcake-29k/raw/upload/t_card_image/v1676642915/Lottie/default_1min_black_rosi2l.json"
}
}
},
{
"type": "sharing",
"hostNotes": [],
"id": "Sharing 1",
"content": {
"heading": "",
"lottie": {
"durationTimer": true,
"duration": 120,
"source": "https://res.cloudinary.com/cupcake-29k/raw/upload/t_card_image/v1676639253/Lottie/default_2min_black_o6egey.json"
}
}
},
{
"type": "host",
"hostNotes": []
},
{
"type": "instruction",
"content": {
"text": "",
"image": {
"source": "https://res.cloudinary.com/cupcake-29k/image/upload/q_auto,t_global/v1711547476/Images/card_Open_up_to_compassion_xqbsa2.png"
},
"heading": ""
}
}
],
"theme": {
"textColor": "#2E2E2E",
"backgroundColor": "#cacaca"
},
"name": "",
"live": true,
"published": true,
"card": {
"imageBackgroundColor": "",
"image": {
"source": "https://res.cloudinary.com/cupcake-29k/image/upload/t_card_image/v1711547476/Images/card_Open_up_to_compassion_xqbsa2.png"
}
},
"coCreators": [
{
"name": "Kristin Neff & Chris Germer, CMSC, original research",
"url": "https://centerformsc.org/",
"image": "https://res.cloudinary.com/cupcake-29k/image/upload/t_cocreator_image/v1697723039/Images/Germer%2C%20Neff.png"
},
{
"name": "Erik Fernholm, editor",
"url": "https://www.linkedin.com/in/lyckoaktivist/?originalSubdomain=se",
"image": "https://res.cloudinary.com/cupcake-29k/image/upload/t_cocreator_image/v1665412608/Contributors/Erik%20Fernholm.png"
},
{
"url": "https://openprocessing.org/user/183691?view=sketches&o=228",
"name": "Aaron Reuland, artwork",
"image": "https://res.cloudinary.com/cupcake-29k/image/upload/t_cocreator_image/v1713964400/Images/user183691_i74pfh.jpg"
},
{
"name": "Núria Tous, voz en Español",
"url": "https://www.linkedin.com/in/nuriatous/"
}
],
"introPortal": {
"textColor": "#2E2E2E",
"hostNotes": [
{
"text": "> Começa quando estiveres pronta/o"
}
],
"videoLoop": {
"p5JsScript": {
"lang": "javascript",
"code": "function loadScript(url, callback) {\n const script = document.createElement(\"script\");\n script.type = \"text/javascript\";\n script.src = url;\n\n // Optional: Provide a callback function to run once the script is loaded\n script.onload = function() {\n if (callback) callback();\n };\n\n // Append the script to the document's head\n document.head.appendChild(script);\n}\n\n// URLs of the external JavaScript libraries\nconst simplexNoiseURL = \"https://openprocessing-usercontent.s3.amazonaws.com/files/user183691/visual2179025/h5636a7067b4b5f2d98624459645bf990/simplexNoise.js\";\nconst spectralURL = \"https://openprocessing-usercontent.s3.amazonaws.com/files/user183691/visual2179025/h5636a7067b4b5f2d98624459645bf990/spectral.min.js\";\n\n// Load the simplexNoise library first\nloadScript(simplexNoiseURL, function() {\n console.log(\"simplexNoise.js loaded successfully!\");\n\n // Load the spectral library next\n loadScript(spectralURL, function() {\n console.log(\"spectral.min.js loaded successfully!\");\n\n // Now both libraries are loaded, you can safely use their functionality here\n // For example, initialize your sketch or call a function that relies on these libraries\n });\n});\n\n\n\nlet colors = [\"#c78b25\", \"#4e5b6d\", \"#636b4b\", \"#2b5c72\", \"#973535\", \"#ad9690\", \"#15171f\"]\n\nlet drops = []\nlet splatters = []\nlet straps = []\nlet simplex\n\nfunction setup() {\n\tcreateCanvas(windowWidth, windowHeight);\n\tsimplex = new openSimplexNoise(Date.now())\n\tbackground(210);\n\tlet x = random(width)\n\tlet s = noise(x / 100) * width / 50\n\tdrops.push(new drop(x, s))\n}\n\nfunction draw() {\n\tif (frameCount % 50 == 0 && frameCount < 2500) {\n\n\t\tlet x = map(simplex.noise2D(frameCount / 300, random()), -1, 1, -width / 4, width + width / 4)\n\t\tlet s = noise(x / 100) * width / 50\n\t\tdrops.push(new drop(x, s))\n straps.push(new strap(random(width), random(height / 5, height / 2.5)))\n\t\tstraps.push(new strap(random(width), random(height / 5, height / 2.5)))\n\n\t}\n\n\n\tif (frameCount % 100 == 0 && frameCount > 500 && frameCount < 4000) {\n\t\tsplatters.push(new splatter(random(width), random(0, height * 0.66), random(height * 0.02, height * 0.1)))\n\t}\n\tfor (let d of drops) {\n\t\td.move();\n\t\td.show();\n\t\td.done();\n\t}\n\tfor (let s of splatters) {\n\t\ts.move();\n\t\ts.show();\n\t\ts.done();\n\t}\n\tfor (let st of straps) {\n\t\tst.move();\n\t\tst.show();\n\t\tst.done();\n\t}\n\n}\n\nclass splatter {\n\tconstructor(x, y, r) {\n\t\tthis.pos = createVector(x, y);\n\t\tthis.color1 = random(colors)\n\t\tthis.color2 = random(colors)\n\t\tthis.r = r\n\t\tthis.currentR = 0\n\t\tthis.runs = []\n\t\tlet amount = floor(random(15, 30))\n\t\tlet startAngle = random(TAU)\n\t\tfor (let a = 0; a < TAU; a += TAU / amount) {\n\t\t\tlet aOff = random(-TAU / 12, TAU / 12)\n\t\t\tlet sizeRange = this.r / (amount / 4)\n\t\t\tvar sp = {\n\t\t\t\tangle: a + aOff,\n\t\t\t\tsize: random(sizeRange * 0.75, sizeRange * 1.5)\n\t\t\t}\n\t\t\tthis.runs.push(sp)\n\t\t}\n\t\tthis.speed = this.r / 40\n\t}\n\n\tmove() {\n\t\tthis.currentR += this.speed\n\t}\n\n\tshow() {\n\t\tlet mixer = map(this.currentR, 0, this.r, 0, 1)\n\t\tlet filler = color(spectral.mix(this.color1, this.color2, mixer))\n\t\t// let alpha= map(this.currentR, 0, this.r, 2, 100)\n\t\t// filler.setAlpha(alpha)\n\t\tfill(filler)\n\n\t\t//probably need to add some jiggle\n\t\tfor (let r of this.runs) {\n\t\t\tlet quaver = simplex.noise2D(r.angle, this.currentR / (this.r / 3)) * r.size / 4\n\t\t\tlet xoff = simplex.noise2D(r.angle, this.currentR / 100, this.pos.x) * this.currentR / 5\n\t\t\tlet yoff = noise(r.angle, this.currentR / 100, this.pos.y) * this.currentR\n\t\t\tellipse(this.pos.x + cos(r.angle) * this.currentR + xoff, this.pos.y + sin(r.angle) * this.currentR + yoff, r.size + quaver)\n\t\t}\n\t}\n\n\tdone() {\n\t\tif (this.currentR >= this.r) {\n\t\t\tlet index = splatters.indexOf(this);\n\t\t\tsplatters.splice(index, 1);\n\t\t}\n\n\t}\n}\n\nclass drop {\n\tconstructor(x, s) {\n\t\tthis.pos = createVector(x, -s)\n\t\tthis.color1 = random(colors)\n\t\tthis.color2 = random(colors)\n\t\tthis.size = s\n\t\tthis.speed = random(1, 5)\n\t}\n\n\tmove() {\n\t\tlet xdrift = simplex.noise2D(this.pos.x / 100, frameCount / 50) * this.size / 10\n\t\tlet mover = createVector(xdrift, this.speed)\n\t\tthis.pos.add(mover)\n\n\t}\n\n\tshow() {\n\t\tnoStroke()\n\t\tlet quaver = simplex.noise3D(this.pos.y / 200, this.pos.x / 200, frameCount / 50) * this.size / 2\n\t\tlet m = map(this.pos.y, 0, height, 0, 1)\n\t\tlet mixer = color(spectral.mix(this.color1, this.color2, m))\n\t\tlet a = map(this.size, width / 100, width / 10, 75, 1)\n\t\tmixer.setAlpha(a)\n\t\tfill(mixer)\n\t\tellipse(this.pos.x, this.pos.y, this.size + quaver)\n\t}\n\n\tdone() {\n\t\tif (this.pos.y > this.size + height) {\n\t\t\tlet index = drops.indexOf(this);\n\t\t\tdrops.splice(index, 1);\n\t\t}\n\n\t}\n}\n\nclass strap {\n\tconstructor(x, h) {\n\t\tthis.h = h\n\t\tthis.w = random(width / 100, width / 40)\n\t\tthis.pos = createVector(x, height + this.w)\n\t\tthis.color1 = random(colors)\n\t\tthis.color2 = random(colors)\n\t}\n\n\tmove() {\n\t\tthis.pos.y -= 1\n\t}\n\n\tshow() {\n\t\tpush()\n\t\tlet mix = map(this.pos.y, height, height - this.h, 0, 1)\n\t\tlet filler = color(spectral.mix(this.color1, this.color2, mix))\n\t\tfill(filler)\n\t\tlet curve = map(this.pos.y, height, height - this.h, 0, this.h)\n\t\tlet xoff = simplex.noise3D(this.pos.x, this.pos.y / (this.h * 2), frameCount / 200) * curve\n\t\tlet sizing = map(this.pos.y, height, height - this.h, this.w, 1)\n\t\tellipse(this.pos.x + xoff, this.pos.y, sizing)\npop()\n\t}\n\n\tdone() {\n\t\tif (this.pos.y < height - this.h) {\n\t\t\tlet index = straps.indexOf(this);\n\t\t\tstraps.splice(index, 1);\n\t\t}\n\t}\n}"
},
"audio": "https://res.cloudinary.com/cupcake-29k/video/upload/v1712905258/Audio/portal_audio_open_up_to_compassion_jclox4.mp3"
}
},
"tags": [
"db34d82a-4c48-4ddd-9de5-f562d8aa1bc9",
"34100e43-2eb8-4d35-8eb0-9fa9f78e4935"
],
"id": "19135d2e-0e8d-418c-939d-18b0e62215ff",
"async": true,
"description": "Investiga onde sentes as emoções no teu corpo, para praticares a autocompaixão quando enfrentares emoções difíceis e pensamentos autocríticos."
}
}
}
Loading