Colour Spectrum (Fixed)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
nate890
Prole
Posts: 25
Joined: Tue Jan 24, 2012 10:50 pm

Re: Colour Spectrum (Odd Error)

Post by nate890 »

Fixed it, thanks for your help!
nate890
Prole
Posts: 25
Joined: Tue Jan 24, 2012 10:50 pm

Re: Colour Spectrum (Odd Error)

Post 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
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Colour Spectrum (Odd Error)

Post by kikito »

Please post a .love file so we can test.
When I write def I mean function.
nate890
Prole
Posts: 25
Joined: Tue Jan 24, 2012 10:50 pm

Re: Colour Spectrum (Odd Error)

Post 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.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Colour Spectrum (Odd Error)

Post 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.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
nate890
Prole
Posts: 25
Joined: Tue Jan 24, 2012 10:50 pm

Re: Colour Spectrum (Odd Error)

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Colour Spectrum (Fixed)

Post by Robin »

Why delete the thread? It might be of use for others with the same problem.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: slime and 138 guests