I need to upload my processing sketch to my website in order for it to be assessed as part for my mark. But the code doesn't work when I use it online.
It can be found at: http://sketchpad.cc/16tzxgxy6w (not working) but if you copy that code to Processing and run it, works perfectly.
this is the main bit if anyone can recosnise an issue - basically drawing a random shape w/ points based on simple math.
for(int i = 0; i < points; i++)
{
stroke(strokeCol);
fill(backgroundCol);
float startX = sin(radians(startDot * dotDegree)) * radius;
float startY = cos(radians(startDot * dotDegree)) * radius;
float endX = sin(radians(endDot * dotDegree)) * radius;
float endY = cos(radians(endDot * dotDegree)) * radius;
line(startX, startY, endX, endY);
ellipse(startX, startY, eSize, eSize);
startDot = endDot;
endDot = int(random(points));
}
Thank a lot for any suggestions.