Skip to content

raylib.DrawCylinder

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Draw a cylinder NOTE: It could be also used for pyramid and cone

Parameters

Parameter Default Value Note
position
radiusTop 1.0
radiusBottom 1.0
height 2.0
slices 16
color WHITE

Return value

None.

Notes

Example

// Inside BeginMode3D / EndMode3D:
raylib.DrawCylinder [0,0,0], 0.5, 0.5, 2.0, 16, raylib.GREEN

Clone this wiki locally