GithubHelp home page GithubHelp logo

dseeni / loaf-ingredients Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danomatika/loaf-ingredients

0.0 0.0 0.0 429 KB

A set of useful Lua classes & libraries for projects using loaf: lua, osc, and openframeworks

License: MIT License

Lua 100.00%

loaf-ingredients's Introduction

loaf-ingredients

A set of useful Lua classes & libraries for projects using loaf: http://danomatika.com/code/loaf

loaf is an interpreter for openFrameworks which allows you to write OF applications in the Lua scripting language. This means you can quickly create using openFrameworks but without having to compile C++ or use a heavy IDE like Xcode or Visual Studio. A built-in OSC (Open Sound Control) server enables loaf to communicate natively with other creative coding and music applications over a network connection.

Dan Wilcox 2017-2022

Ingredients List

The ingredients are a mix of traditional Lua tables and reusable loaf class objects. The naming convention followed is for classes to begin with uppercase letters.

  • hui: the "Hooey UI", simple window & view hierarchy for UIs based on Apple's UIKit
  • resources: a loaf resource manager
  • SimpleSprite: simple sprite animation class using a sprite sheet
  • Scaler: a loaf 2d render scaler class
  • Timer: a simple millisecond timer class
  • Warper: a quad warper using an fbo
  • options: super simple commandline options parser

Documentation can be found in the source files and in examples.

Examples are found on the examples directory. They can be run by either drag & dropping the Lua scripts onto loaf or via the commandline:

loaf examples/huitest.lua

Screenshots:

huitest
huitest: multiple hui.Windows with enclosed hui.Views, active window has a red border

testwarper
testwarper: quad warper in edit mode

Usage

Download or clone this repository and place the .lua files and/or subfolders you want to use into a folder in your project, say "libs". To use the loaf resource manager, you might have the following project layout:

project/libs/resources.lua
project/assets/hellokitty.png
project/main.lua

In main.lua, you can then import and use resources.lua via the require keyword:

local resources = "libs.resources"
local image = resources.add("hellokitty", "assets/hellokitty.png")

Note the "libs.resources" which includes the "libs" subfolder. The same is true for libraries within a folder as require will automatically search for an init.lua file as well.

loaf-ingredients's People

Contributors

danomatika avatar

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.