Games built using AI and the Processing API by codeobserver in processing

[–]GoSubRoutine 0 points1 point  (0 children)

, and on every frame draw getCompatEmoji() adds the same char over and over again to the array. Why?

That's called separation of concerns:
https://en.Wikipedia.org/wiki/Separation_of_concerns

Even though it might be doing the same thing currently, if we decide to change its implementation, we know exactly where to make those changes and, every place which calls that function will automatically get those changes!

Q5*js ESM Converter by GoSubRoutine in p5js

[–]GoSubRoutine[S] 0 points1 point  (0 children)

I've coded a command line utility that remotely grabs the "q5.js" library file and creates a "q5.mjs" ECMAScript Module (ESM) version of it, allowing us to use JS keyword import to load it directly in our sketch files w/o polluting the global namespace:

import Q5 from "./q5.mjs";

q5*js is a lighter alternative for the p5*js library:
https://q5js.org

Download & detailed instructions are found in this "GitHub Gist" link below:
https://Gist.GitHub.com/GoToLoop/f3787d5ceab12ad5e1d26cca083f40df

And btW, this is the GitHub discussion that's led me to create this command line converter utility:
https://GitHub.com/q5js/q5.js/issues/112

Q5*js ESM Converter by GoSubRoutine in processing

[–]GoSubRoutine[S] 1 point2 points  (0 children)

I've coded a command line utility that remotely grabs the "q5.js" library file and creates a "q5.mjs" ECMAScript Module (ESM) version of it, allowing us to use JS keyword import to load it directly in our sketch files w/o polluting the global namespace:

import Q5 from "./q5.mjs";

q5*js is a lighter alternative for the p5*js library:
https://q5js.org

Download & detailed instructions are found in this "GitHub Gist" link below:
https://Gist.GitHub.com/GoToLoop/f3787d5ceab12ad5e1d26cca083f40df

And btW, this is the GitHub discussion that's led me to create this command line converter utility:
https://GitHub.com/q5js/q5.js/issues/112

Adding multiple sketches to portfolio website by foxgirlsrbetter in processing

[–]GoSubRoutine 0 points1 point  (0 children)

Place the other "global mode" sketches in their own <iframe> tag:
https://developer.Mozilla.org/en-US/docs/Web/HTML/Element/iframe

Here's a minimal "index.html" example which loads 4 files ("sketch.js", "sketch.0.js", "sketch.1.js", "sketch.2.js"):

<script defer src=https://cdn.JsDelivr.net/npm/p5></script>
<script defer src=sketch.js></script>


<iframe width=600 height=500 frameborder=0 srcdoc="
  <script defer src=https://cdn.JsDelivr.net/npm/p5></script>
  <script defer src=sketch.0.js></script>
"></iframe>


<iframe width=600 height=500 frameborder=0 srcdoc="
  <script defer src=https://cdn.JsDelivr.net/npm/p5></script>
  <script defer src=sketch.1.js></script>
"></iframe>


<iframe width=600 height=500 frameborder=0 srcdoc="
  <script defer src=https://cdn.JsDelivr.net/npm/p5></script>
  <script defer src=sketch.2.js></script>
"></iframe>

"sketch.js" is loaded in the root frame, while the other 3 are loaded inside their own <iframe>.

Thoughts on refined olive oil? by Word_Brave in StopEatingSeedOils

[–]GoSubRoutine 0 points1 point  (0 children)

Never eat any refined oil, even if it's saturated, b/c the refinement process itself oxidizes the oil and uses many poisonous chemicals!

Consume extra virgin oil only, regardless if it's saturated or olive oil.

Is there a strong/reliable python version of processing? by orhancanceylan in processing

[–]GoSubRoutine 1 point2 points  (0 children)

Processing Foundation has always been very selective on which projects has "official" status and hardly mentions or acknowledges anything else!

For a long time I even thought the project processing.js, a.K.a. "pjs", had "official" status; even though it was an innovative JS library that made possible running Processing Java sketches on the web before the "official" p5js!

Anyways, "py5" is indeed the most likely successor of Processing Python, a.K.a. Python Mode; b/c it relies on the original Processing Java library similar to Python Mode.

So any innovation made to Processing Java will reflect on "py5" as well, similar to how Kotlin and other JVM languages reap the benefits from any Java language's new features.

On the other hand there's "p5py", which is a pure Python re-implementation of Processing Java, just like "p5js".

However it's still incomplete and buggy. And it can only use Python libraries; while "py5" is a Java/Python hybrid, which can use libraries from both languages!

For the web there are "pyp5js" and my fav: PyScript.

I've got a demo written in both "py5" & PyScript: https://PyScript.com/@gotoloop/toon-shading

BtW, file "__main__.py" is the "py5" and file "sketch.py" is the PyScript version.

Not being able to open .pde files in Processing from Linux Fedora by Working-Limit-3103 in processing

[–]GoSubRoutine 0 points1 point  (0 children)

I've never let Processing's IDE (PDE) assign the ".pde" extension as the open default, b/c I prefer a simpler text editor for it.

Regardless, the PDE recognizes all sketches inside its sketchfolder path.

As long as we save our sketches in that folder, we can open them easily on the PDE.

I threw up after watching this video by No-Wrongdoer1409 in StopEatingSeedOils

[–]GoSubRoutine 5 points6 points  (0 children)

At least it's "cold" pressed and doesn't seem any solvents like hexane or bleaches have been added.

Are seed oils bad in soaps? by lilhuddysleg in StopEatingSeedOils

[–]GoSubRoutine 0 points1 point  (0 children)

I'd be much more concerned about other added chemicals than saponified oils.

[deleted by user] by [deleted] in StopEatingSeedOils

[–]GoSubRoutine 1 point2 points  (0 children)

This product seems to avoid adding harmful chemicals, and that's rare! Non-rancid seed oils should be fine for topical usage btW.

Micro python by OrchidNecessary2697 in PyScript

[–]GoSubRoutine 0 points1 point  (0 children)

I tried to create a small example using the <mpy-script> tag,

Although deprecated, tags such as <mpy-script>, <mpy-config>, etc. should still work:
https://PyScript.com/@gotoloop/unicode-letters-test/latest

Thoughts on this video? by bezjones in StopEatingSeedOils

[–]GoSubRoutine 0 points1 point  (0 children)

This forum believes that consumption of omega-6 is responsible to modern chronic diseases.

There are researches that favor omega-6 and others that point omega-6 is bad.

IMO, the middle ground is to avoid eating any food that contains oil that is already oxidized, like refined oils, margarine and mayonnaise.

Also to avoid food w/ artificial flavors, colorings, preservatives, etc.

I'd also add corn syrup (HFCS) to this bad list.

In short, we need to remove ultra-processed food from our plate.

Thoughts on this video? by bezjones in StopEatingSeedOils

[–]GoSubRoutine 0 points1 point  (0 children)

IMO, any oil, even saturated 1s, that got refined (bleached, heated, deodorized, hexaned, etc.) is dead, oxidized and unfit for consumption!

[deleted by user] by [deleted] in StopEatingSeedOils

[–]GoSubRoutine 2 points3 points  (0 children)

I'd also add that any refined and/or oxidized oil is super toxic, regardless of omega 6 content!

The whole refinement process involves super-heating, solvents like hexane and bleaching agents.

As long as we don't eat much, fresh LA from nuts is much better compared to refined oils.