Sphere Morphing in Processing

Simon is trying to write a program for Sphere Morphing in Processing, first making a test code in p5.js (available here: https://alpha.editor.p5js.org/simontiger/sketches/S1zcwevkz)

In the video below, Simon is explaining the challenge using Magformers triangles:

 

Unfortunately, the test code doesn’t quite work yet: Simon is getting three infinite triangles around the circle.

Advertisements

Magformers Pythagoras set

Simon pulled out his old Magformers Pythagoras set and this time around, he really nailed all the tasks independently. The set offers a variety of puzzles to “prove” the Pythagorean theorem and apply it to other shapes (even 3D!), as well as teaches several more tricks (such as the ratios between the areas of similar triangles or the areas of parallelograms).

dsc_2040388899318.jpg

Chinese square Proof:

dsc_20481571486190.jpg

dsc_2051927828638.jpg

Area of Parallelograms:

dsc_20541926246679.jpg

dsc_20521360054958.jpg

Applying Pythagorean theorem to other shapes:

dsc_2043900843144.jpg

Extended theorem by the Greek mathematician Pappus:

dsc_20502120717258.jpg

dsc_20491455294093.jpg

Areas of Similar Triangles:

dsc_20561750730228.jpg

dsc_2055530778092.jpg

More of Pythagorean theorem with various shapes:

dsc_2044717909933.jpg

dsc_2046825305280.jpg

dsc_2047946430086.jpg

dsc_2042172543324.jpg

dsc_2045353646649.jpg

Puzzles:

dsc_2062565567867.jpg

dsc_2064278481395.jpg

dsc_20691197824981.jpg

 

Where are my compasses?

 

There’s been a lot of drawing going on here lately. And jokes, like in the video above. Yesterday, after he got distracted while trying to draw the exact tangent of a circle, Simon said: “I went off on another tangent. To find a tangent!”

DSC_1902

DSC_1901

DSC_1898

DSC_1890

DSC_1889

 

Simon’s Codea Tutorials and the Arc-Tangent

A set of awesome Codea tutorials that Simon recorded for those who are just starting to program in Codea. Simon ported examples from Processing (java) into Codea (Lua):

In the second tutorial (in two parts), Simon explains how to write a physics simulation program in Codea using forces like gravity, friction and spring force. Anyone watching will get to use some trigonometry and see what arc-tangent is for! The original code in Java comes from Keith Peters (Processing).

Here are some notes from when Simon was explaining the arc-tangent to me the other day:

DSC_0716

 

Magnitude of a 3D vector

Here Simon explains how to calculate the magnitude of a 3D vector. This is something he partially figured out on his own and partially learned from Daniel Shiffman’s tutorial on Trigonometry and Polar Coordinates.

 

DSC_0540

Infinite Line in Processing. Simon’s own code.

A beautiful project in Processing (Java), Simon’s own code, resembling  an El Lissitzky painting that you can control and change with the mouse (without Simon knowing El Lissitzky). Resulted from thinking about and playing with infinite line and line segments. Simon used the following formula: slope times x plus yIntercept.

Infinite Speceship 13 Jun 2017 2

Infinite Speceship 13 Jun 2017 1

 

 

 

DSC_0410