Code Monkey home page Code Monkey logo

flap's Introduction

Flap

Imagine you are fluttering by in a peaceful meadow, and in the distance, you hear a loud, ungraceful, violent, troglodyte flapping by. Smashing their wings or all the good things within their reach. This is Flap.

Flap was born out of the thesaurus entry for the word Flutter, and as such, the obvious connection to that UI framework reveals that this is in fact a cheap knockoff of Flutter. Welcome to FLAP. Flap is a craftOS UI framework.

Included functionality

Flap includes lua! But benefits include:

  • An eventLoop abstraction over the os.queueEvent, that allows for queueing of callbacks and timers.
  • Some builtin widgets, and a tree based recursive renderer.
  • Some functionality...

Installation/Usage

As this package was developed for use with computer craft, it is distributed as a single file, found under /deploy. Simply, place flap.lua adjacent to your script then:

require 'flap'

Development

Building

Building uses a slightly modified version of the many2one script, this is in the root directory called cc_deploy.lua.

Run lua cc_deploy.lua and it will generate the singleton file.

Fast iterations

Using the singleton can be a bit of a pain if you are me developing this library. So what I like to do is clone the repo into a craftOS instance, then just develop from there. It does not need to be portable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.