3.0.25 • Published 5 months ago

linterf v3.0.25

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

💫 linterf

install GraphicsMagick

Be sure to watch DETAIL.md before using it!

💬 An advanced version of nodecli-gui

  • Widgets: Panel, Button, Label, Checkbox, Radio, Image, Textbox, Webview, Custom
  • Presets: Modal (create-later)
  • Functions: TCG (3D CLI Graphic)

🆕 TCG ?

  • A 3D engine using cli, and text is drawn on the screen using location and size data.
When running tcg, use the program below to run it.
const { CLIApplication } = require(`linterf`);
const global = require(`linterf/dist/scripts/global`);

const app = new CLIApplication();

const tcg = new global.TCG([
    {
        id: `cube`,
        center: { x: .5, y: .8, z: .5 },
        rotation: { x: .5, y: .5, z: 0 },
        vertices: [
            { x: 0, y: .7, z: 0 },
            { x: 1, y: .7, z: 0 },
            { x: 0, y: 1.3, z: 0 },
            { x: 1, y: 1.3, z: 0 },
            { x: 0, y: .7, z: 1 },
            { x: 1, y: .7, z: 1 },
            { x: 0, y: 1.3, z: 1 },
            { x: 1, y: 1.3, z: 1 },
        ]
    }
], { events: {
    onFrame: (objects, camera) => {
        if (objects[0].vertices[0].x >= 5) {
            objects[0].center.x = .5;
            objects[0].vertices.map((e, idx) => e.x = (((idx + 1) % 2) === 0));
        }

        objects[0].center.x += .15;
        objects[0].rotation.y += .2;
        objects[0].vertices.map(e => e.x += .15);
    }
} });

app.append(tcg);
app.show(24);

💾 Installation

$ npm install linterf

💾 Usage

const { CLIApplication, CLILabel } = require(`linterf`);

const app = new CLIApplication();

const title = <CLILabel text="title" styles={{ "text-color": "#222831", y: 2 }} />;

app.append(title);
app.show(30); // frame: 30

🎥 Run

$ npx linterf-scripts
3.0.25

5 months ago

3.0.23

5 months ago

3.0.21

5 months ago

3.0.19

5 months ago

3.0.18

5 months ago

3.0.17

5 months ago

2.9.37

6 months ago

2.9.36

6 months ago

2.9.35

6 months ago

2.9.32

6 months ago

2.9.31

6 months ago

2.9.24

6 months ago

2.9.23

6 months ago

2.9.21

6 months ago

2.9.20

6 months ago

2.9.19

6 months ago

2.9.18

6 months ago

2.9.17

6 months ago

2.9.16

6 months ago

2.9.15

6 months ago

2.9.14

6 months ago

1.8.5

6 months ago

1.8.4

6 months ago

1.8.3

6 months ago

1.8.0

6 months ago

0.1.0

6 months ago