import { HCenter, Main } from "./common.tsx";
import { debug_render } from "./html.ts";
import { Component } from "./jsx/jsx-runtime.ts";
const Eggbug: Component = () => (
);
function health_style(current: number, last: number, max: number) {
const inc_width = 100 / max;
const dhealth = last - current;
console.log(inc_width, dhealth);
return `transform: translateX(${-(inc_width * dhealth)}%); width: ${
last * inc_width
}%;`;
}
// could be generalized
// might be worthwhile later since