Search found 6 matches

by kpj
Thu May 03, 2012 5:03 pm
Forum: General
Topic: Handling images
Replies: 2
Views: 1515

Re: Handling images

First one: stupid me :P
And thanks a lot !
by kpj
Thu May 03, 2012 12:14 pm
Forum: General
Topic: Handling images
Replies: 2
Views: 1515

Handling images

Hello guys,
Is there any possibility to manipulate images in lua/löve? For example scaling, cropping, merging, ... (Like in ... java?).
Maybe some magic with "imageData"?
kpj
by kpj
Sat Apr 28, 2012 7:38 pm
Forum: General
Topic: Create Polygon
Replies: 6
Views: 3561

Re: Create Polygon

Thanks a lot!
That was perfect :)
by kpj
Sat Apr 28, 2012 12:23 pm
Forum: General
Topic: Create Polygon
Replies: 6
Views: 3561

Re: Create Polygon

Nice idea, I tried it: Note: "drawmevert" contains all coordinates in the following pattern: "x1, y1, x2, y2, ..." function create_poly() local tsize = table.getn(drawmevert) local verter = {} local vt = {} for i,v in ipairs(drawmevert) do -- divide all entries in 8 sized chunks ...
by kpj
Sat Apr 28, 2012 9:31 am
Forum: General
Topic: Create Polygon
Replies: 6
Views: 3561

Re: Create Polygon

Yes, that did it :awesome: Now there is another problem, I can only create a polygon with up to 8 different points. In my programm, I want the user to draw a shape, and then add this shape to love.physics, so it could interact with all other objects. Any suggestions how I could do this? Maybe I do n...
by kpj
Fri Apr 27, 2012 8:45 pm
Forum: General
Topic: Create Polygon
Replies: 6
Views: 3561

Create Polygon

Hello, I'd like to create some variable Polygons with the love.physics engine. Since 0.8 I do this with "shape = love.physics.newPolygonShape( x1, y1, x2, y2, x3, y3, ... )". Indeed, my points are in a table. How can I convert my table (of variable size) to anything, that would fit into th...