In this example we will stream the data from the connected web-camera or any other camera-like device and perform real-time image processing
How can I take a photo in WL?
In this example we will stream the data from the connected web-camera or any other camera-like device and perform real-time image processing
How can I take a photo in WL?
An onboard ADC (analog-to-digital converter) is one of the basic features of Arduino-compatible boards. With just a few lines of code, the can turn voltages into numerical values. When streamed over a serial interface, these values let the Arduino act as a live external sensor—capturing data from photodiodes, microphones, or other circuits.
In this example, we build a robust workflow for acquiring ADC samples via UART/USB and processing them in the Wolfram Language. Instead of relying on naïve streaming (which is prone to corruption), we design a lightweight framing protocol that improves integrity of data packets. Once in Wolfram Language, the values can be visualized, filtered, or transformed in real time—turning an entry-level Arduino into a toy-like oscilloscope or spectrum analyzer.
Here we shall try to model a system of interconnected bonds using the Verlet method. Then, we'll add some visuals to make it feel like a game.
A toy-like example on the real-time collisions resolution using Verlet Integration method
I've made a video recently on one of my favourite methods for solving Newton's equations. It is available on YouTube Shorts 🎥
It wasn't clear to me if this is worth a full article or just a short comment. Let me start with a supplementary material for the video first, and then we shall see...
In this example, we construct a solid region with a -shaped cutout, where a small rectangle is going to be dragged by a user's mouse.
Then we utilize a very powerful standard function of a Wolfram library, RegionDistance
, allowing estimation of the minimal distance between regions in a single line.
Using Basic ML with Wolfram Engine
Hi there! I am working as a spectroscopist. We shine light through the samples and estimate how much is absorbed and at which frequency. In this case, it is quite crucial to know the light spot, which is collimated by a special copper aperture:
Adapted example by Gabriel Lemieux (2025)
The Galton Board notebook simulates the behavior of a physical Galton board—a device that demonstrates the Central Limit Theorem using a grid of pegs and falling balls that bounce randomly to form a bell-shaped distribution.
Developers log
It is clear, that not everyone is happy with WLJS rendering engine. Some styles might be different or look different from the traditional Mathematica's plots. For this reason we have MMAView
allowing to use built-in raster rendering engine of Wolfram Engine.
But is it possible to animate things or use Manipulate
together with MMAView
?
This code creates a magnifying glass effect over an image in Wolfram Language. As the mouse moves over the image, a zoomed-in circular region follows the cursor, simulating a magnifying lens.
Using the power of Newton's equations and numerics to solve dynamics of arbitary planar meshes in real-time
An Ultimate Guide for non-WLJS or non-WL users
The idea of programmatically generating slides and graphics for presentations, reports, or lecture notes is far from new. Today, you can do this using Python, HTML, JSX, Julia, and more. Most of these tools follow a similar concept—combining declarative markup like Markdown and HTML. We’ll follow a similar path but add support for dynamic elements, reusable components, and event bindings. Sounds complicated? Actually, the goal is to simplify.
⚠️ Heads-up: This approach involves traditional text-based programming.
⚠️ Warning: Lots of images ahead. It is about presentations 😄
using GeoData, surface plot, and a bunch of other beautiful stuff
Have you ever played Outer Wilds? The planets there are incredibly beautiful. This actually became the main motivation to create my own simple model of a planet, using real geographical elevation data and a bit of Wolfram Language magic.
A game running in the notebook? Ha?! 🐺👾
I was playing recently too much of Nier:Automata and decided to recreate a hacking mode in WLJS Notebook & Wolfram Language
Sorry for not posting a source code, I will make a blog post later on it
It is also possible to combine your custom input element with traditional dynamics. For instance you want to create multiple input fields, which are synchronised with each other or using some equation.