import { ComponentChildren, JSX } from "preact"; import { Main, render_and_copy } from "./common.tsx"; // don't want to do randomly on since it's not unique anyway const Pixel = () => (
); const Pixels = ({ n, color_a, color_b, }: { n: number; color_a: string; color_b: string; }) => <>{...new Array(n).fill(null).map(Pixel)}; render_and_copy(
);