Giter Club home page Giter Club logo

bezierdrawing's Introduction

BezierDrawing

Love2D Drawing Library using cubic Bezier curves.

Stuff:

  • Use Bezier curves to draw shapes
  • At any time, click outside of the shape to render it
  • Automatically renders Normalmaps and specmaps for the shape (in a background thread)
  • Define your own materials using a simple API, which will control the normalmap, specmap and colors of your shapes (see "Materials" subfolder for examples).

Kudos:

These scripts work with the (awesome) Löve engine (love2d.org). They will be part of a game I'm planning and are very specific to it. Still, if you can find another use for them, feel free to use them.

Thanks to vrld, who's code I closely relied on for the camera and some math functions and who gave me some starter tips on Bezier curves. Also thanks to mattdesl for the awesome tutorial on normalmapping for 2d games using OpenGL.

To Do:

  • [Done] Copy Shape
  • Box select
  • [Canceled] Rotate selection
  • [Canceled] Scale selection
  • [Done] Move selection
  • [Done] Fill shape
  • [Done] Change color/Material
  • [Done] Render normalmaps

bezierdrawing's People

Contributors

germanunkol avatar

Watchers

 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.