INNER CODE UNIT · Rust

Mm

matiaskorhonen/paper-age · src/builder.rs:225

            while y > Mm(0.0) {
                y -= grid_size;

                self.draw_line(
                    vec![
                        Point::new(self.page_size.dimensions().width, y),
                        Point::new(Mm(0.0), y),
                    ],
                    thickness,
                    LineDashPattern::default(),
                );
            }
        }
    }

    /// Draw a line on the page
    pub fn draw_line(&mut self, points: Vec<Point>, thickness: f32, dash_pattern: LineDashPattern) {
        trace!("Drawing line");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…