Function macroquad::shapes::draw_hexagon
source · [−]pub fn draw_hexagon(
x: f32,
y: f32,
size: f32,
border: f32,
vertical: bool,
border_color: Color,
fill_color: Color
)
Expand description
Draws an outlined solid hexagon centered at [x, y]
with a radius size
, outline thickness
defined by border
, orientation defined by vertical
(when true
, the hexagon points along
the y
axis), and colors for outline given by border_color
and fill by fill_color
.