// let's game boy ! ! ! import { ComponentChild } from "preact"; import { Cycle, render_and_copy } from "./common.tsx"; const Pixel = ({ colors, width_px, }: { colors: [string, ...string[]]; width_px: number; }) => (
{...colors.map(c => ( // p saves four bytes per // we aren't going to get to 20x18 but less data is courteous
))}
); const Draw = ({ width, height = width, pixel_width_px, colors, bg_color, }: { width: number; height?: number; pixel_width_px: number; colors: [string, ...string[]]; bg_color: string; }) => (
{...new Array(width * height) .fill(null) .map(() => )}
); const Shell = ({ children }: { children: ComponentChild }) => (
{children}
); // https://www.color-hex.com/color-palette/26401 // body: "#aaaaaa" render_and_copy( );