Joe lives at the Bahamas. It is winter. His children are disappointed that there is no snow. Joe needs to make snow for his children. Fortunately, he has a 3-d printer. He plans to make snowflakes with it. Unfortunately he has no idea how a snowflake would look like. In fact, he has never seen a snowflake! Let us help him by creating a program that automatically generates a 2d-image of a snowflake for him.
Input
The diameter of the image(in pixels), the percentage of the image that is actually a snowflake.
Output
An image of a snowflake with the required diameter. It can be saved to a file or displayed to the user.
Specifications
Create a wedge that has a 30 degree angle. Create a Brownian Tree with initial seed at the point of the wedge. Reflect the wedge around the center of the image 12 times to generate the rest of the image. The snowflake has the color White. The background has the color Black.
Scoring
Due to the fact there are different ways to generate a Brownian Tree, the score is 10 * number of upvotes - golf score.
Golf score is defined as the number of bytes in the program with the following bonuses:
-20% Can arbitrarily specify the symmetry of the snowflake.
-50% Can specify the shape of the snowflake. (By being able to specify the ratio of the lengths of the sides of the wedge.)
Highest score wins.
Here is a picture what the shape of the wedge would be with the ratio approximately 2:
Scoreboard:
Martin Buttner: 10 * 14 - 409 = -269
Nimi: 10 * 1 - 733 * .5 = -356.5
Optimizer: 10 * 5 - 648 = -598
The winner is Martin with score -269!