This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pturtle.*; | |
| Turtle t = new Turtle(this); | |
| for (int i = 0; i < 4; i++) { | |
| t.forward(10); | |
| t.right(90); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pturtle.*; | |
| Turtle t = new Turtle(this); | |
| t.forward(10); | |
| t.right(90); | |
| t.forward(10); | |
| t.right(90); | |
| t.forward(10); | |
| t.right(90); | |
| t.forward(10); | |
| t.right(90); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import toxi.math.noise.*; | |
| import toxi.math.waves.*; | |
| import toxi.geom.*; | |
| import toxi.math.*; | |
| import toxi.math.conversion.*; | |
| import toxi.geom.util.*; | |
| import toxi.util.datatypes.*; | |
| import toxi.color.*; | |
| import toxi.color.theory.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import processing.phone.*; | |
| int BOX_HEIGHT = 10; | |
| int N_COLOURS = 4; | |
| int N_SIZES = 5; | |
| color[] colours; | |
| int[] sizes; | |
| int i; | |
| int j; | |
| Phone p; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Arrays; | |
| import processing.core.PApplet; | |
| import processing.core.PConstants; | |
| public class Fluid extends PApplet { | |
| class Physics extends Thread { | |
| @Override | |
| public void run() { | |
| while (true) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import toxi.math.noise.*; | |
| import toxi.math.waves.*; | |
| import toxi.geom.*; | |
| import toxi.math.*; | |
| import toxi.math.conversion.*; | |
| import toxi.geom.util.*; | |
| import toxi.util.datatypes.*; | |
| import toxi.color.*; | |
| import toxi.color.theory.*; |
NewerOlder