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

Method path

perro_source/api_modules/perro_resource_api/src/sub_apis/draw_2d.rs:72–77  ·  view source on GitHub ↗
(&self, points: Vec<Vector2>, color: [f32; 4], thickness: f32)

Source from the content-addressed store, hash-verified

70
71 #[inline]
72 pub fn path(&self, points: Vec<Vector2>, color: [f32; 4], thickness: f32) {
73 self.push(
74 DrawShape2D::path(points.into_boxed_slice(), color.into(), thickness),
75 Vector2::ZERO,
76 );
77 }
78
79 #[inline]
80 pub fn sprite(&self, center: Vector2, texture: TextureID, size: Vector2, tint: [f32; 4]) {

Callers 2

read_dirFunction · 0.45
walk_dir_innerFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected