From 842c30d08277f1014979cc9af331758994e33e96 Mon Sep 17 00:00:00 2001 From: pearmini Date: Tue, 31 Dec 2024 00:19:40 -0500 Subject: [PATCH] Update README --- README.md | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c70c3fe..36ef619 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,15 @@ -# Charming Terminal +# Cell -The terminal renderer for Charming. +The creative language for ASCII art based on Basic. -> [!NOTE] -> The current next branch is implementing the new proposal API for production use. Please refer to the [python branch](https://github.com/charming-art/charming-cell/tree/python) for the released Python version. +## Get Started -## Get started - -```js -import * as cm from "@charming-art/terminal"; - -const context = await new cm.Context().init({mode: "double", width: 520, height: 520}); -const I = Array.from({length: 240}, (_, i) => i); -const A = I.map((i) => (i / 240) * 2 * Math.PI); -const X = A.map((t) => context.cols() / 2 + 12 * Math.cos(t) * Math.cos(t * 3)); -const Y = A.map((t) => context.rows() / 2 + 12 * Math.sin(t) * Math.cos(t * 3)); -const S = I.map(() => cm.wide("🌟")); -context.point(I, {x: X, y: Y, stroke: S}); +```bash +> cell rect.bas +``` -document.body.append(context.render()); +```basic +rect 0, 0, 10, 10 ``` ## License 📄