First working version

This commit is contained in:
Jonas Zeunert
2024-12-30 15:45:22 +01:00
parent 5bd7626843
commit 439c76c196
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
use crate::pixelmsgs::PixelMsgs; use crate::pixelmsgs::PixelMsgs;
use address::Host;
use std::{io::Write, net::TcpStream}; use std::{io::Write, net::TcpStream};
pub struct FlutR { pub struct FlutR {

View File

@@ -12,7 +12,7 @@ impl Add for PixelMsgs {
let r = color.0[0]; let r = color.0[0];
let g = color.0[1]; let g = color.0[1];
let b = color.0[2]; 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); self.push(msg);
} }
} }