private void Form1_Paint(object sender, PaintEventArgs e)
 {
     float angle;
     Graphics g = e.Graphics;
     g.Transform = m;
     using (Pen p = new Pen(Color.Black, 1 / s1))
     {
         //draw the basic picture
         g.FillEllipse(Brushes.Black, cX - 2, cY - 2, 4, 4);
         //g.DrawEllipse(p, cX - r, cY - r, 2 * r, 2 * r);
         ///draw the buckets
         for (int i = 0; i < prm.Buckets; i++)
         {
             b = buckets[i];
             //calculate the angle and the centre for the bucket
             angle = (float)(prm.Theta + i * 2 * Math.PI / prm.Buckets);
             b.X = -(float)Math.Sin(angle) * r + cX;
             b.Y = -(float)Math.Cos(angle) * r + cY;
             //draw it
             b.drawbucket(g, s1);                
         }
     }
 }