10000 GitHub - notcl4y14/lovepatch: A simple 9-patch library for LÖVE
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

notcl4y14/lovepatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lovepatch

This a love2D library that creates and draws 9-patch images. https://en.wikipedia.org/wiki/9-slice_scaling. Thanks to darkfrei for helping with the code (or just even writing all by himself). The example code is in the main.lua file.

Demo

pic1

Library functions

lovepatch.load(filename, edgeWidth, edgeHeight)    -- Creates a new 9-patch object.
lovepatch.load(filename, left, right, top, bottom) -- Creates a new 9-patch object with custom edges.
lovepatch.draw(patch, x, y, width, height)         -- Draws a 9-patch object at the given position with the given size.

About

A simple 9-patch library for LÖVE

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0