Skip to content

raylib.DrawCylinderWires

JoeStrout edited this page Oct 17, 2026 · 3 revisions

Draw a wired 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
sides 16
color WHITE

Return value

None.

Notes

Example

camera = {position:[0,5,10], target:[0,0,0], up:[0,1,0], fovy:45, projection:raylib.CAMERA_PERSPECTIVE}
raylib.InitWindow 800, 600, "DrawCylinderWires"
while not raylib.WindowShouldClose
    raylib.BeginDrawing
    raylib.ClearBackground raylib.RAYWHITE
    raylib.BeginMode3D camera
    raylib.DrawGrid 10, 1.0
    raylib.DrawCylinderWires [0,0,0], 0.5, 0.5, 2.0, 16, raylib.GREEN
    raylib.EndMode3D
    raylib.EndDrawing
end while
raylib.CloseWindow

Clone this wiki locally