Code Monkey home page Code Monkey logo

lu5's Introduction

Lua interpreter for Creative Coding

Provides a similar experience to p5.js with opengl wrappers.

We are not and we do not claim to be affiliated with p5.js or the processing foundation


This sketch draws a circle at position 300, 300.

See API Documentation for more

function setup()
    createWindow(600, 600);
end

function draw()
    background(51);

    circle(300, 300, 32);
end

Build

You can download a built executable for lu5 here, or you can build it yourself assuming you have the right dependencies installed (opengl, glfw, lua, freetype2).

If you encounter any problems with your build or runtime, it is encouraged to submit an issue and steps to reproduce.

GNU/Linux

Build with make

make

you can then install the executable in /usr/bin

sudo make install

Windows

Windows builds are done in an MSYS2 environement with mingw64 installed.

Install dependencies

pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-lua mingw-w64-x86_64-glfw mingw-w64-x86_64-freetype

build

make PLATFORM=win

Running Lua Sketches

Specify the path of the file you want to execute

lu5 file.lua


Preview

lu5 preview circle lu5 preview instances lu5 preview instances



Contributions

Contributions to expand the lu5 api are welcomed.

Read the contribution docs

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.