renderbug: first implementation of virtual coordinate based rendering

This commit is contained in:
2024-10-27 15:14:28 +01:00
parent 4432ba7ad0
commit 3f20c07369
6 changed files with 221 additions and 97 deletions

View File

@@ -1,4 +1,5 @@
use palette::convert::FromColorUnclamped;
use palette::blend::{PreAlpha, Premultiply};
use palette::encoding::srgb::Srgb;
use palette::Hsv;
use embedded_graphics::pixelcolor::RgbColor;
@@ -13,7 +14,7 @@ pub struct RGB8 {
}
impl RGB8 {
const fn new(red : u8, green : u8, blue : u8) -> Self {
pub const fn new(red : u8, green : u8, blue : u8) -> Self {
Self {
red: red,
green: green,