Browse Source

use style instead of with_stroke

embedded-hal-1.0
Chris 7 years ago
parent
commit
dd70d02eb7
  1. 7
      examples/embedded_linux_epd4in2/src/main.rs

7
examples/embedded_linux_epd4in2/src/main.rs

@ -268,8 +268,11 @@ fn run() -> Result<(), std::io::Error> {
display.draw(
Font6x8::render_str("Hello World!")
.with_stroke(Some(Color::Black))
.with_fill(Some(Color::White))
.with_style(Style {
fill_color: Some(Color::White),
stroke_color: Some(Color::Black),
stroke_width: 0u8, // Has no effect on fonts
})
.translate(Coord::new(5 + i*10, 50))
.into_iter(),
);

Loading…
Cancel
Save