Chunkie handlebar end cap

My handlebars on my fixie came with chunky black handlebar caps - excellent but totally the wrong colour!.
Whipped out the openscad and these were my first thing i have ever made.
I found i had to scale them down to 0.5 size when printing to make them fit.