## Modeling gravity for multiple objects

A former student, JH, recently corresponded with me about some simulations he'd done of a gravitational system. This problem is connected with many problems in physics including molecular dynamics and n-body problems. It is also of particular interest to game … Continue reading

## Oma Camp 2015

Wednesday, July 22nd, and we are hitting the road with our Airstream for its first trip. In the past two months, we moved most of our belongings into storage, put our home on the market, sold it, and moved everything … Continue reading

## 4T 2015 Keynote: Learning to Code and Coding to Learn!

You can download my slides as a pdf or PowerPoint. Processing For many folks, Processing is something new. For illustration, here is a progression of easy sketches that give some of the flavor of Processing. drawSomething This sketch opens a … Continue reading

## Topics for Art of Computing

We discussed possible directions, and came up with this list: Creating websites from scratch with HTML and CSS, using Brackets for editing and GitHub for source control. Collaborative development via git Arduino REST-based web services Targeting multiple platforms Using a … Continue reading

## Fractal trees with a gradient horizon

I introduced recursion to my students today using fractal trees as an example. They got to learn about using pushMatrix() and popMatrix() with the power of using rotate and translate to avoid nasty trig stuff. They asked about creating a … Continue reading

## Simulating collisions in two dimensions

We can study 2D collisions and the conservation of momentum via these Processing sketches. Colliding at right angles Colliding at any angle … Continue reading

## Circular motion

Constant acceleration We've studied motion in a straight line by watching Felix step from his gondola, 40 km above the earth. You can skip to about 2 minutes if you want to see the highlights. We've also studied motion in … Continue reading

## Generating a maze

I'm sure there are some great algorithms for generating mazes, but I rolled my own for the fun of it. Might be the basis for a game, or for generating a design for the laser cutter. The maze shown below … Continue reading

## Aliasing a drawing

When we look at an image on a display, we are actually looking at thousands of squares of light. This is different from what we see in the real world. The fact that we simulate details with small squares is … Continue reading

## Connect the dots

This is another in the vein of the rotating ellipses, lissajous figures, and other sketches I've written to generate graphical designs. Can you figure out how the program works just by studying its behavior? … Continue reading

## Masks in Processing

A mask is an overlay that can be placed on top of an image, and partially blocks or blends with the background. For our purposes, think of the mask as an overlay on your screen, black in some areas, clear … Continue reading

## Hour of Code 2014

Hour of Code is the biggest educational event on Earth, and it is self-taught. In 2013, 15 million students participated. In 2014, the goal is 100 million students. At FlexTech on Monday Dec 8th, through Wednesday Dec 10th, I will … Continue reading

## Concentric circles

John Robb directed me to this optical illusion. Do these circles intersect? You can find other interesting illusions at Michael Bach's site. … Continue reading

## Art of Computing Project Showcase

You will create a project for the FlexTech Project Showcase. It is a project of your choosing, subject to Mr. Benson's approval. It may be in Scratch or Processing, or another development environment of your choice (subject to Mr. Benson's … Continue reading

## Artificial smoke

A physicist could come up with an elaborate model for simulating smoke that produces results indistinguishable from real smoke. We are interested in simple models, with successive refinement. Our first version of smoke introduces the idea of gradual fading by … Continue reading