Book a Demo

Author Topic: Database cylinder shape  (Read 8081 times)

kokoloko

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Database cylinder shape
« on: July 09, 2010, 12:02:02 am »
Hello

I can't find out how to include the well-known cylinder Database shape in a diagram.
Examples:
http://www.iconspedia.com/search/database/


I don't find it in any on the toolboxes, and if I try inserting an image it gets an ugly white background even if I use a GIF with a transparent background.

Little help?
Thanks

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Database cylinder shape
« Reply #1 on: July 09, 2010, 01:05:38 am »
You may draw your own using a shape script.

HTH
g.

kokoloko

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Database cylinder shape
« Reply #2 on: July 10, 2010, 04:00:32 am »
Thanks Makulik for the tip.

This is the shape that I created in case it is of use to someone:

shape main

{
         // bottom ellipse
     ellipse(0,50,100,110);
      
         // middle shape
         startpath();
     moveto(0,25);
     lineto(0,82);
         lineto(100,82);
     lineto(100,25);        
     endpath();
     fillpath();

         moveto(0,32);
     lineto(0,82);

         moveto(100,35);
     lineto(100,82);

         // top ellipse
          ellipse(0,0,100,60);
        
}


I still find it frustrating that EA does not provide it out of the box, and that it does not support image transparency.