First working version
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use crate::pixelmsgs::PixelMsgs;
|
||||
use address::Host;
|
||||
use std::{io::Write, net::TcpStream};
|
||||
|
||||
pub struct FlutR {
|
||||
|
||||
@@ -12,7 +12,7 @@ impl Add for PixelMsgs {
|
||||
let r = color.0[0];
|
||||
let g = color.0[1];
|
||||
let b = color.0[2];
|
||||
let msg = format!("PX {} {} {r:02x}{g:02x}{b:02x}", item.0, item.1);
|
||||
let msg = format!("PX {} {} {r:02x}{g:02x}{b:02x}\n", item.0, item.1);
|
||||
self.push(msg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user