Colour Spectrum (Fixed)
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Colour Spectrum (Odd Error)
Fixed it, thanks for your help!
Re: Colour Spectrum (Odd Error)
It was black because I forgot to change the "/255" in my main code, as I had changed it on this post and confused myselfMarekkPie wrote:So is the error the error code in the first post? Or can you not see anything, but it runs?
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Colour Spectrum (Odd Error)
Please post a .love file so we can test.
When I write def I mean function.
Re: Colour Spectrum (Odd Error)
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).kikito wrote:Please post a .love file so we can test.
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)
For those who are interested how to fix such errors:
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.nate890 wrote:I get the error "24 - Incorrect draw mode -501.333333333333", what's this mean?
Re: Colour Spectrum (Odd Error)
Yes, indeed, I noticed that error right after I posted it, and I mentioned that in my last post.vrld wrote:For those who are interested how to fix such errors: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.nate890 wrote:I get the error "24 - Incorrect draw mode -501.333333333333", what's this mean?
...Wonder if you can delete threads.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Colour Spectrum (Fixed)
Why delete the thread? It might be of use for others with the same problem.
Help us help you: attach a .love.
Who is online
Users browsing this forum: Google [Bot] and 2 guests