MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / dash_length

Method dash_length

canvas/src/context.rs:78–78  ·  view source on GitHub ↗

Adds a dash of the specified length to the dash pattern (alternating between drawing and gap lengths)

(&mut self, length: f32)

Source from the content-addressed store, hash-verified

76
77 /// Adds a dash of the specified length to the dash pattern (alternating between drawing and gap lengths)
78 fn dash_length(&mut self, length: f32) { self.draw(Draw::DashLength(length)); }
79
80 /// Sets the offset for where the dash pattern starts at the next stroke
81 fn dash_offset(&mut self, offset: f32) { self.draw(Draw::DashOffset(offset)); }

Callers 2

drawMethod · 0.80
mainFunction · 0.80

Implementers 3

font_line_layout.rscanvas/src/font_line_layout.rs
context.rscanvas/src/context.rs
canvas.rscanvas/src/canvas.rs

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected