Yea, do not feel bad please.
Even if the code or documentation has some problems, even just the attempt at documentation and reuseable code it is a very valuable learning experience. Some people never learn it at all.
Two other small things:
1) https://love2d.org/wiki/love.math.colorFromBytes is maybe a function you were looking for.
Note how it accepts colors passed as seperate variables but also works with a table.
2) instead of declaring an empty table and then adding entries, you can do it in one step like this:
local a = {r=100,b=200,g=50}
Anyway, organizing code and collecting often-used functions is generally a good idea. But on the other hand there is the saying: "Do not write engines, do not write libraries - write games."
There is some truth in that, especially when starting out.
nevermind
Re: nevermind
Yep, as others already pointed out, don't give up and continue to work with taken into account criticism
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 7 guests