Wow! Very nice!
I've tried to make the d-string parser, but it was always bad, there are too much variations how you can write the same vectors.
Search found 1173 matches
- Wed Apr 17, 2024 7:15 am
- Forum: Libraries and Tools
- Topic: Rasterizing polygons into images
- Replies: 4
- Views: 442
- Fri Apr 12, 2024 12:54 pm
- Forum: Libraries and Tools
- Topic: Global environment browser
- Replies: 3
- Views: 194
- Fri Mar 29, 2024 7:14 pm
- Forum: General
- Topic: How can I learn Lua and Love2D?
- Replies: 4
- Views: 483
Re: How can I learn Lua and Love2D?
Lua in 15 minutes:skullmangor wrote: ↑Thu Mar 28, 2024 12:34 am Tho I have some difficulties guessing where to start, should I start by learning and mastering Lua first?
https://tylerneylon.com/a/learn-lua/
- Fri Mar 29, 2024 6:53 pm
- Forum: Games and Creations
- Topic: Particle collisions (with cache)
- Replies: 4
- Views: 5601
Re: Particle collisions (with cache)
Thanks! I am learning how to code and I've made alot of small programs: https://github.com/darkfrei/love2d-lua-tests
- Sun Mar 24, 2024 11:09 am
- Forum: Libraries and Tools
- Topic: Parabola functions in Lua
- Replies: 10
- Views: 87810
Re: Parabola functions in Lua
The parabola is given by focus and directrix. Finding the roots of parabola for given high y: function getFocusParabolaRoots (fx, fy, y) -- focus, horizontal line -- (directrix dirY is global) local h = fx -- x shift local p = -(dirY-fy)/2 -- always negative for voronoi local k = (fy - p) - y -- (fy...
- Wed Mar 13, 2024 8:15 am
- Forum: Libraries and Tools
- Topic: PNG to outline/contour x,y coordinates - python script
- Replies: 3
- Views: 786
Re: PNG to outline/contour x,y coordinates - python script
ChatGPT can make Lua / Love2D code as well, also translate one language to other. With mistakes, that is hard to find, yeah.
- Wed Mar 13, 2024 8:09 am
- Forum: Support and Development
- Topic: push and pop for graphics ?
- Replies: 8
- Views: 6726
Re: push and pop for graphics ?
[...] You've bumped a 10 year old thread. love.graphics.push ("all") was added to love 9 years ago and does what the OP asks, you should use it instead of that code. Almost 10 years. But we read the wiki graphics.pop yesterday and there was a problem: no information about the color stacki...
- Tue Mar 12, 2024 5:41 pm
- Forum: Support and Development
- Topic: push and pop for graphics ?
- Replies: 8
- Views: 6726
Re: push and pop for graphics ?
local function graphicsPushPopGenerator() local states = {} local graphicsPush = function() local currentState = { color = {love.graphics.getColor()}, -- must be table lineWidth = love.graphics.getLineWidth(), pointSize = love.graphics.getPointSize() } table.insert(states, currentState) end local g...
- Tue Mar 12, 2024 3:48 pm
- Forum: General
- Topic: Gradients (gradient as fill)
- Replies: 10
- Views: 1851
Re: Gradients (gradient as fill)
Meshes seem to be unnecessary complicated for my use - I am neither using images, nor canvas. I am working with 2D, not 3D. I am drawing polygons directly and using physics functions. I can simulate gradients via repeated drawing of multiplied polygons, but I will have to benchmark performance here...
- Tue Mar 12, 2024 6:26 am
- Forum: General
- Topic: Gradients (gradient as fill)
- Replies: 10
- Views: 1851
Re: Gradients (gradient as fill)
Hi, I have searched forums extensively as well as Stack Overflow to find out how to approach gradient drawing. I mostly need it for polygons at the moment, but I am sure it would be useful to have it for any shape. I know there was a discussion regarding this and the best method so far is to use a ...