---
name: "al_draw_ribbon"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_draw_ribbon/3alleg5"
---

# al\_draw\_ribbon(3alleg5)

Allegro 5 API

## NAME

al\_draw\_ribbon - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_primitives.h>
  void al_draw_ribbon(const float *points, int points_stride, ALLEGRO_COLOR color,
     float thickness, int num_segments)
  ```

## DESCRIPTION

Draws a ribbon given an array of points. The ribbon will go through all of the passed points. The points buffer should consist of regularly spaced doublets of floats, corresponding to x and y coordinates of the vertices.

*Parameters:*

- •

  points - An array of coordinate pairs (x and y) for each point

- •

  points\_stride - Distance (in bytes) between starts of successive pairs of coordinates in the points buffer

- •

  color - Color of the spline

- •

  thickness - Thickness of the spline, pass `<= 0` to draw hairline spline

- •

  num\_segments - The number of segments

## SEE ALSO

al\_calculate\_ribbon(3alleg5)
