Improve and fix issues with color generation

This commit is contained in:
2024-08-10 19:36:26 +02:00
parent 84002d1856
commit 376201373e
3 changed files with 12 additions and 5 deletions

View File

@@ -1,10 +1,11 @@
<script lang="ts">
import { GenerateColor } from "$lib/utils";
import { GenerateColor, RemoveExistingColors } from "$lib/utils";
import { main } from "$wails/models";
import EmptyFoodComp from "./EmptyFoodComp.svelte";
import FoodComp from "./FoodComp.svelte";
export let items: main.Food[] = [];
RemoveExistingColors();
let minCal = 1e5;
let maxCal = 0;