:cylinder

Example

[3D] Draws a cylinder. NOTE: You must pass {:mode :webgl} to the third argument of create-game. :radius - The radius of the cylinder (number) :height - The height of the cylinder (number) :detail-x - Number of segments in the x-dimension (number) :detail-y - Number of segments in the y-dimension (number) :bottom-cap? - Whether to draw the bottom of the cylinder (boolean) :top-cap? - Whether to draw the top of the cylinder (boolean)
[:rotate {:angle (/ (js/window.performance.now) 1000), :axis :x} [:rotate {:angle (/ (js/window.performance.now) 1000), :axis :y} [:cylinder {:radius 50, :height 100}]]]