Calculating the Intersections of a Venn Diagram in Actionscript
$100-500 USD
Abgesagt
Veröffentlicht vor mehr als 15 Jahren
$100-500 USD
Bezahlt bei Lieferung
**Action Script Venn Diagram ??" Calculating the Intersections**
This project is to deliver ActionScript that calculates and converts to Sprites all possible intersections of two or three circles.? Conversely you will need to calculate and convert the non-intersecting (complementary) sections of the circles.
For the purposes of testing, the actual deliverable will be a flash application that will allow the user to set the size of the 1, 2, or 3 balls.? The balls will then be draggable so that any configuration of the balls can be set up.? Then there will be a button that calculates the intersections and complements.? When an intersection or complement is moused over, it should go to black. When an intersection or complement is clicked, it should be draggable.
? **Bonus:**? If you can figure out how to generically calculate n-way intersections and n-way complements, I will give you a 50% bonus.? By n-way, I mean that if the diagram has 4,5,6,or…n balls, your algorithm will draw the intersections and complements.?
Performance requirements are that for any configuration of 3 balls, calculating and drawing the intersections cannot take more than 0.10 seconds on a 2 year old laptop ??" I could get more specific, but if you can make this thing run fine on your 2-year old laptop, it will run fine on mine.
I’m not overly picky on coding style. I expect that functions and variables are descriptively named. ? Generally, a single method should not contain more than 10 lines of code.? In this case, the code definitely needs to be broken out into separate classes ??" a recommended class diagram is provided.
?
This project should take 12-20 hours.
## Deliverables
**Clarification:**? When you draw the intersections, you must be able to tell which balls the intersection is part of.? It is not enough just to draw the shapes, but you must be able to determine what the? intersection or complement "means".? Furthermore, you do not have control over the color or texture of the balls.? Certainly, we aren't going to use camoflauge balls, but they may have a gradient and they may be any color.? You can definitely assume that the balls will be partially transparent, though.
This clarification makes some strategies such as color comparison more difficult to implement.