MCPcopy Create free account
hub / github.com/PerroEngine/Perro / rect

Method rect

perro_source/api_modules/perro_resource_api/src/sub_apis/draw_2d.rs:38–40  ·  view source on GitHub ↗
(&self, center: Vector2, size: Vector2, color: [f32; 4])

Source from the content-addressed store, hash-verified

36
37 #[inline]
38 pub fn rect(&self, center: Vector2, size: Vector2, color: [f32; 4]) {
39 self.push(DrawShape2D::rect(size, color.into()), center);
40 }
41
42 #[inline]
43 pub fn rect_stroke(&self, center: Vector2, size: Vector2, color: [f32; 4], thickness: f32) {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected