Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
JavaScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384#!/usr/bin/env node
// Simple KidLisp API List Generatorconsole.log("๐ฏ KidLisp API Analysis");console.log("=" + "=".repeat(50));
// List of all known KidLisp functions categorizedconst API_MAP = { "๐ Core Language": [ "def", "later", "if", "once", "not", "now", "die" ], "๐งฎ Math & Numbers": [ "+", "-", "*", "/", "%", "sin", "cos", "max", "min", "mod", "mul", "random", "range", "wiggle" ], "๐จ Graphics - Basic": [ "wipe", "ink", "line", "box", "circle", "tri", "plot", "flood", "shape", "lines" ], "๐ผ๏ธ Images & Media": [ "paste", "stamp", "painting", "steal", "putback", "write", "len" ], "๐ Transformations": [ "scroll", "zoom", "suck", "spin", "resetSpin", "smoothspin", "sort", "blur", "contrast", "pan", "unpan" ], "๐ต Audio & Sound": [ "mic", "amplitude", "speaker", "melody", "overtone", "noise" ], "๐ญ 3D Graphics": [ "cube", "quad", "form", "trans", "cubespin", "cubepos", "cubescale", "cuberot" ], "๐น Camera Control": [ "camrot", "camrotx", "camroty", "camrotz", "camspin", "camspinx", "camspiny", "camspinz" ], "๐ System Properties": [ "width", "w", "height", "h", "frame", "f", "clock", "fps", "resolution" ], "๐จ Colors & Effects": [ "red", "blue", "green", "yellow", "orange", "purple", "magenta", "cyan", "teal", "lime", "gray", "grey", "white", "black", "rainbow", "zebra", "backdrop", "fade", "coat" ], "๐ง Utility Functions": [ "tap", "draw", "hop", "delay", "debug", "log", "label", "choose", "source", "cache", "yes", "no", "repeat", "rep" ], "โก Advanced Features": [ "embed", "bake", "jump", "mask", "unmask" ]};
let totalFunctions = 0;
console.log("\n๐ COMPLETE KIDLISP API REFERENCE:\n");
for (const [category, functions] of Object.entries(API_MAP)) { console.log(`${category} (${functions.length} functions)`); console.log(` ${functions.join(", ")}`); console.log(""); totalFunctions += functions.length;}
console.log("=" + "=".repeat(50));console.log(`๐ SUMMARY: ${totalFunctions} total functions across ${Object.keys(API_MAP).length} categories`);console.log("");
// Analyze function distributionconst transformFunctions = API_MAP["๐ Transformations"];const suckIndex = transformFunctions.indexOf("suck");const suckPosition = suckIndex + 1;
console.log("๐ช๏ธ SUCK FUNCTION ANALYSIS:");console.log(` โข Position in transforms: ${suckPosition}/${transformFunctions.length}`);console.log(` โข Transform category: ${transformFunctions.length} functions`);console.log(` โข Total API: ${totalFunctions} functions`);console.log(` โข Suck prominence: ${((1/totalFunctions) * 100).toFixed(2)}% of total API`);console.log("");
console.log("โ
API Analysis Complete");console.log("");console.log("๐ก The 'suck' function is one of 11 transformation functions and represents");console.log(" 1.6% of the total KidLisp API surface area. Documentation emphasis");console.log(" reflects its recent implementation and technical significance.");