mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Fix colors example
This commit is contained in:
parent
6fa5b18cc6
commit
ba5963a4f0
@ -28,7 +28,7 @@ fn back_color(x: u8, y: u8, x_max: u8, y_max: u8) -> Color {
|
|||||||
255 - x * (255 / x_max))
|
255 - x * (255 / x_max))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn draw(p: &Printer, _: &()) {
|
fn draw(_: &(), p: &Printer) {
|
||||||
let x_max = p.size.x as u8;
|
let x_max = p.size.x as u8;
|
||||||
let y_max = p.size.y as u8;
|
let y_max = p.size.y as u8;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user