## Search found 2681 matches

- Mon Jul 26, 2021 1:50 pm
- Forum: Support and Development
- Topic: Strange alpha blending when transforming
- Replies:
**6** - Views:
**109**

### Re: Strange alpha blending when transforming

Yeah indeed. To expand on grump's answer, I've made a series of images to explain what's going on. Here's your image in GIMP with a 2x zoom: http://www.formauri.es/personal/pgimeno/temp/gimp-purple-square-1.png The transparent area is alpha. GIMP has a nice option to separate the alpha from everythi...

- Mon Jul 26, 2021 11:47 am
- Forum: General
- Topic: silent mode of love2d window
- Replies:
**3** - Views:
**65**

### Re: silent mode of love2d window

In conf.lua: function love.conf(c) c.window = nil end Also you better disable some modules that you won't be using. Don't disable the event module, and quit with love.event.quit(). If you want to create a window e.g. when given certain parameters in the command line, call love.window.setMode() to st...

- Sat Jul 24, 2021 8:59 pm
- Forum: Support and Development
- Topic: SOLVED [ Will reuse thread ]
- Replies:
**6** - Views:
**159**

### Re: Unable to index (a nil value) [ Help needed ]

Welcome to the forums. There is a confusion between animation states and game states. I suggest you clear up that confusion and use different base classes for each. There's also a lot of globals, which makes debugging much harder. For example, in closeGame.lua the class BaseState is overwritten. In ...

- Sat Jul 24, 2021 5:29 pm
- Forum: Libraries and Tools
- Topic: Slab - An Immediate Mode GUI Library In Lua
- Replies:
**78** - Views:
**167662**

### Re: Slab - An Immediate Mode GUI Library In Lua

Thanks for your answeer. I found also some other bugs. One is about file path on windows that use "\" instead of "/". Another, possibily related, is about font loading. I will let you know. What about \ vs /? Windows accepts / for paths just fine (except in commands passed to th...

- Sat Jul 24, 2021 4:05 pm
- Forum: Support and Development
- Topic: Maths formula for the maths guru's
- Replies:
**19** - Views:
**1569**

### Re: Maths formula for the maths guru's

Just for fun, I've adjusted the points given by togFox to a 10th-degree polynomial (that's the minimal degree necessary when given 11 arbitrary points as in this case). The result has some nasty surprises, in the first two segments and the last segment: It appears that the changes in curvature force...

- Sat Jul 24, 2021 6:39 am
- Forum: Support and Development
- Topic: Maths formula for the maths guru's
- Replies:
**19** - Views:
**1569**

### Re: Maths formula for the maths guru's

How about a not trivial situation, where the point is at the x = 0.7 and y = 0.6? That gives me a = -1840/441, b = 2798/441 and c = -517/441. The point where y = x can be calculated by solving for p in the formulas for a, b and c; it is (479+sqrt(1040881))/1840, which is approx. 0.814802041885. Sin...

- Fri Jul 23, 2021 2:38 pm
- Forum: Support and Development
- Topic: Maths formula for the maths guru's
- Replies:
**19** - Views:
**1569**

### Re: Maths formula for the maths guru's

Yeah, these are limitations of using a 4th degree polynomial. Setting the second derivative to 0 at x=0 gives us the value of p at which this happens, namely (sqrt(13)+1)/6 which is a little under 0.7676. Similarly, for p < (11-sqrt(65))/14 (a little under 0.21) you can get values above 1 on the oth...

- Thu Jul 22, 2021 11:14 pm
- Forum: Support and Development
- Topic: Maths formula for the maths guru's
- Replies:
**19** - Views:
**1569**

### Re: Maths formula for the maths guru's

In case you want to change the payoff point later, I've extracted the formulas to calculate a, b, c for a given payoff p between 0 and 1: a = (2*p-1)/(p*(p-1)) b = -2*(p*p+p-1)/(p*(p-1)) c = (3*p*p-p-1)/(p*(p-1)) You already have the values for p=0.65 and p=0.666666...; now you can find them for any...

- Thu Jul 22, 2021 9:39 pm
- Forum: Support and Development
- Topic: Maths formula for the maths guru's
- Replies:
**19** - Views:
**1569**

### Re: Maths formula for the maths guru's

The formula you see is the MS Excel trend line (ignore the error - I couldn't remove that one) but it really means nothing to me. Why not? local function payout(x) return -3e-6*x^4+0.0003*x^3+0.0107*x^2-0.0669*x+0.4196 end print(payout(0)) -- 0.4196 print(payout(10)) -- 1.0906 print(payout(20)) -- ...

- Tue Jul 20, 2021 9:00 pm
- Forum: Support and Development
- Topic: why am i getting this error?
- Replies:
**12** - Views:
**1497**

### Re: why am i getting this error?

Not everyone's first language is English.

I think GVovkiv meant "You made a little misspelling".

I think GVovkiv meant "You made a little misspelling".