/** @jsxImportSource react */
// Ported from Charm Lip Gloss's canvas/compositor example (MIT).
import React from "react";
import { adaptive, perimeterGradient, type Paint } from "#/color/index.ts";
import { Box, render, Text } from "#/index.ts";
const cardBorder = perimeterGradient([
"#FF388B", // CharmTone Cherry
"#6B50FF", // CharmTone Charple
"#00B875", // CharmTone Guac
"#6B50FF",
"#EB4268", // CharmTone Sriracha
]);
function Field({
left,
top,
color,
}: {
readonly left: number;
readonly top: number;
readonly color: Paint;
}) {
return (
{Array.from({ length: 17 }, () => "/".repeat(43)).join("\n")}
);
}
function Card({
label,
left,
top,
}: {
readonly label: string;
readonly left: number;
readonly top: number;
}) {
return (
{label}
);
}
function App() {
return (
);
}
render();