Skip to content

raylib.DrawCylinderEx

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Draw a cylinder with base at startPos and top at endPos NOTE: It could be also used for pyramid and cone

Parameters

Parameter Default Value Note
startPos
endPos
startRadius 1.0
endRadius 1.0
sides 16
color WHITE

Return value

None.

Notes

Example

// Inside BeginMode3D / EndMode3D:
raylib.DrawCylinderEx [0,0,0], [0,3,0], 0.5, 0.5, 16, raylib.BLUE

Clone this wiki locally