Difference between revisions of "Main Page"

From CodeStuff
Jump to: navigation, search
Line 1: Line 1:
 
'''The beginning of something that probably won't be finished
 
'''The beginning of something that probably won't be finished
  
With a bit of luck there's an editor below.
+
This is an experiment at making an introduction to programming wiki where code can be tweaked and run from inside the wiki page.
 +
The [[API]] has just a few functions available, but it should be sufficient to be able to make some interesting things to play with.
 +
 
 +
Give it a go by clicking Run. Give [[Radish]] a go for something that moves and has mouse and keyboard input.
  
 
<edcode>
 
<edcode>
 
print("Hi there");
 
print("Hi there");
 
print("next line");
 
print("next line");
 
 
print("over here",300,200);
 
print("over here",300,200);
 +
 
drawLine(120,120,50,50);
 
drawLine(120,120,50,50);
 +
 
setColour("red");
 
setColour("red");
 
print("Now in Red!");
 
print("Now in Red!");
  
setColour("orange");
+
setColour("rgba(200,128,30,0.5)");
  
 
for (var x=0; x<10;x++) {
 
for (var x=0; x<10;x++) {
 
   print("*",40+x*30,250-x*10);
 
   print("*",40+x*30,250-x*10);
 
}
 
}
 +
</edcode>
  
setColour("rgba(0,0,0,0.2)");
 
  
drawLine(40,400,600,400);
+
I am teaching some primary school students an introduction to programming so I am adding documentation that tries to assume as little background as possible.  I am not a great writer  so things might be a bit rough. 
</edcode>
+
 
 +
You could see how they're [[Getting Started]]

Revision as of 10:32, 25 January 2012

The beginning of something that probably won't be finished

This is an experiment at making an introduction to programming wiki where code can be tweaked and run from inside the wiki page. The API has just a few functions available, but it should be sufficient to be able to make some interesting things to play with.

Give it a go by clicking Run. Give Radish a go for something that moves and has mouse and keyboard input.



I am teaching some primary school students an introduction to programming so I am adding documentation that tries to assume as little background as possible. I am not a great writer so things might be a bit rough.

You could see how they're Getting Started