void setup()
{
size(400,400);
smooth();
}
// create arrays to hold data results
// create one array to hold conservative data
// create a second array to hold data on labour
// create a third array to hold data on liberal democrates
void draw()
{
fill(255,10);
rect(0,0,400,400);
float test[] = {38.6, 35.9, 38.6};
float Conservative[] = {38.6, 33.7, 27.7};
float Labour[] = {35.9, 33.0, 31.1};
float libdems[] = {38.6,32.8, 28.6};
for(int i=0; i < Conservative.length; i++)
{
fill(0,0,255);
ellipse(100,150*i+50,Conservative[i],Conservative[i]);
}
for(int i=0; i < Labour.length; i++)
{
fill(255,0,0);
ellipse(200,150*i+50,Labour[i],Labour[i]);
}
for(int i=0; i < libdems.length; i++)
{
fill(255,255,0);
ellipse(300,150*i+50,libdems[i],libdems[i]);
}
}
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Step 1: First you need to download and install python. You can get a python installation from http://www.python.org/download/ Step 2: now...
-
In this file i purposely made mistakes to see what would happen. I hope this helps
-
to settup the database for Django step 1: go to the settings file ENGINE': 'django.db.backends.sqlite3', # Add 'postgresq...

No comments:
Post a Comment