From Digital Arts Wiki
Jump to: navigation, search

Its very easy to create content on the wiki.

The full help page is found here How to author content in mediawiki

If that is a bit overwhelming we can focus more on editing your page and once it is complete formatting your page

Part of the course will require you to link code examples and applets. This is done using a process called embedding Remember you will also need to speak to Angus to make sure that the applets you embed are uploaded to the correct place.

Example of Applet and Code Insertion

Test of Syntax Highlighting

 * Follow 1. 
 * Based on code from Keith Peters ( 
 * A line segment is pushed and pulled by the cursor.
float x = 100;
float y = 100;
float angle1 = 0.0;
float segLength = 50;
void setup() {
  size(200, 200);
  stroke(0, 100);
void draw() {
  float dx = mouseX - x;
  float dy = mouseY - y;
  angle1 = atan2(dy, dx);  
  x = mouseX - (cos(angle1) * segLength);
  y = mouseY - (sin(angle1) * segLength);
  segment(x, y, angle1); 
  ellipse(x, y, 20, 20);
void segment(float x, float y, float a) {
  translate(x, y);
  line(0, 0, segLength, 0);

The list of languages that can be highlighted is at

Syntax Highlighting Geshi

Mini Projects
Mid Year Exam
Personal tools