Skip to content

Instantly share code, notes, and snippets.

@Sembiance
Sembiance / poly2thumb.js
Created July 25, 2025 14:36
converts a poly GLB to a rotating GIF image using model-viewer
/* global window */
import {xu} from "xu";
import {fileUtil, runUtil, cmdUtil} from "xutil";
import {C} from "../src/C.js";
import {base64Encode, base64Decode, path} from "std";
const argv = cmdUtil.cmdInit({
cmdid : "poly2thumb",
version : "1.0.0",
desc : "Converts a polygon into a thumbnail",