Random Cool things
I was working on my special topics project, and was messing around with the code for the segmented ring portion.
Normally, it looks like this:
I removed one line of code, that put it in polar coordinates.
I got this:
I wasn't really paying atention, and I thought it was kind of cool that I already wrote most of a treemap algorithm (you have to squish the layers together).
Its basically the 'slice and dice' type of tree map, I was hoping to implement the squarified type.
At first I was worried about the area being wrong, but the height is one, so the horizontal distance represents the value (total scaled to 2*pi because I hadn't renormalized from polar).
No comments:
Post a Comment