Example – Intro

A first example

This is the graphic we saw earlier. The code running it is P5 Java and it is fairly simple. If you want to play with the code you will see below the code structure. All you need to do is open Notepad or Gedit hit the copy button and paste the code into Notepad. Then save the code as say example.html then open example.html with your browser and it will run as below.

The Code Structure: