mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
remove last color conversion from render loop
This commit is contained in:
parent
a31de6e819
commit
7ad574cf2a
9 changed files with 122 additions and 47 deletions
|
|
@ -90,8 +90,8 @@ impl ItemColor {
|
|||
impl ItemPalette {
|
||||
pub const G: [Self;256] = {
|
||||
let mut builder = konst::array::ArrayBuilder::new();
|
||||
let mut index = 0;
|
||||
while !builder.is_full() {
|
||||
let index = builder.len() as u8;
|
||||
let light = (index as f64 * 1.3) as u8;
|
||||
let lighter = (index as f64 * 1.6) as u8;
|
||||
let lightest = (index as f64 * 1.9) as u8;
|
||||
|
|
@ -107,7 +107,6 @@ impl ItemPalette {
|
|||
darker: ItemColor::from_rgb(Color::Rgb(darker, darker, darker, )),
|
||||
darkest: ItemColor::from_rgb(Color::Rgb(darkest, darkest, darkest, )),
|
||||
});
|
||||
index += 1;
|
||||
}
|
||||
builder.build()
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue