Your goal is to output an ASCII art pie chart. This is code-golf, so the shortest program (counting the bytes of the source code, not the characters) wins.
No external softwares or APIs are allowed. Only the native ones of each language.
The starting angle and the direction (clockwise/anticlockwise) of the circle are not important. The output can look oval because the height of a character is always superior to its width.
The "background" (characters at the left or the right of the pie) must be spaces.
As input, you have three variables (please post the code for initializing it. The initialization of these variables is not counted in your score) :
k
: Array of characters. Each character is the one which has to be used on the pie chartv
: Array of floats. It's the percentage of each character. The length ofv
is equal to the length ofk
. The sum of it's elements is always 1.0r
: Integer > 1. It's the radius of the pie chart.
Bonus : Subtract 20% of your score if your can output an incomplete pie (in case the \$(\sum_{i=1}^{|v|} v_i)<1\$).