From 283dee01bef9c7effe7539d2eb83be2ac83c56bd Mon Sep 17 00:00:00 2001 From: mehbark Date: Mon, 4 Sep 2023 23:22:46 -0400 Subject: [PATCH] schotter went smoothly --- html/common.tsx | 2 ++ html/schotter.tsx | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 html/schotter.tsx diff --git a/html/common.tsx b/html/common.tsx index 14f2a30..e43d7c3 100644 --- a/html/common.tsx +++ b/html/common.tsx @@ -192,3 +192,5 @@ export const randirect = (...urls: string[]) => // kinda bad name export const pick_random = (xs: T[]): T => xs[Math.floor(Math.random() * xs.length)]; + +export const jitter = (n: number) => n * (Math.random() - 0.5); diff --git a/html/schotter.tsx b/html/schotter.tsx new file mode 100644 index 0000000..be88362 --- /dev/null +++ b/html/schotter.tsx @@ -0,0 +1,51 @@ +import { Main, jitter, n_of, render_and_copy } from "./common.tsx"; + +const Square = ({ row }: { row: number }) => ( +
+); + +render_and_copy( +
+
+ {n_of(22, undefined).map((_, row) => + n_of(12, ) + )} +
+
+ + COMPUTERGRAFIK MIT SIEMENS-SYSTEM 4004 + +
+
+);