Page 2 of 2

Re: Colour Spectrum (Odd Error)

Posted: Fri Jan 27, 2012 6:30 am
by nate890
Fixed it, thanks for your help!

Re: Colour Spectrum (Odd Error)

Posted: Fri Jan 27, 2012 6:30 am
by nate890
MarekkPie wrote:So is the error the error code in the first post? Or can you not see anything, but it runs?
It was black because I forgot to change the "/255" in my main code, as I had changed it on this post and confused myself

Re: Colour Spectrum (Odd Error)

Posted: Fri Jan 27, 2012 8:10 am
by kikito
Please post a .love file so we can test.

Re: Colour Spectrum (Odd Error)

Posted: Fri Jan 27, 2012 12:17 pm
by nate890
kikito wrote:Please post a .love file so we can test.
I got it fixed. Well, really, it never was really broken, I just changed my code in here and forgot to change my actual code. The reason it was turning up black was because I had divided the number by 255 (I was using the same table in another program that needed the numbers to be divided by 255).
My original error was because I forgot to put "fill" or "outline" in the first argument of the rectangle creation. Noticed it, and fixed it.

Re: Colour Spectrum (Odd Error)

Posted: Fri Jan 27, 2012 12:24 pm
by vrld
For those who are interested how to fix such errors:
nate890 wrote:I get the error "24 - Incorrect draw mode -501.333333333333", what's this mean?
It means the first argument to either love.graphics.circle, love.graphics.polygon, love.graphics.rectangle or love.graphics.triangle is wrong. It has the be a DrawMode.

Re: Colour Spectrum (Odd Error)

Posted: Fri Jan 27, 2012 12:26 pm
by nate890
vrld wrote:For those who are interested how to fix such errors:
nate890 wrote:I get the error "24 - Incorrect draw mode -501.333333333333", what's this mean?
It means the first argument to either love.graphics.circle, love.graphics.polygon, love.graphics.rectangle or love.graphics.triangle is wrong. It has the be a DrawMode.
Yes, indeed, I noticed that error right after I posted it, and I mentioned that in my last post.

...Wonder if you can delete threads.

Re: Colour Spectrum (Fixed)

Posted: Fri Jan 27, 2012 1:02 pm
by Robin
Why delete the thread? It might be of use for others with the same problem.