Home
last modified time | relevance | path

Searched refs:points (Results 1 – 2 of 2) sorted by relevance

/StarryEngine/starry_client/src/base/
H A Dgraphicspath.rs14 pub points: Vec<(i32, i32, PointType)>, field
23 points: Vec::new(), in new()
29 self.points.push((x, y, PointType::Move)); in move_to()
36 self.points.push((x, y, PointType::Connect)); in line_to()
66 self.points.push((x as i32, y as i32, PointType::Connect)); in quadratic_bezier_curve_to()
113 self.points.push((x as i32, y as i32, PointType::Connect)); in cubic_bezier_curve_to()
H A Drenderer.rs411 fn lines(&mut self, points: &[[i32; 2]], color: Color) { in lines()
412 if points.is_empty() {
413 } else if points.len() == 1 {
414 self.pixel(points[0][0], points[0][1], color);
416 for i in 0..points.len() - 1 {
418 points[i][0],
419 points[i][1],
420 points[i + 1][0],
421 points[i + 1][1],
438 for point in graphicspath.points { in draw_path()