Jump to content

compare car colors


JeViCo

Recommended Posts

Posted (edited)

Hello everyone! How can i compare 2 different rgb car colors? I can't compare just doing (r,g,b) ~= (r2,g2,b2)

Edited by Juuve
Posted

You can only check for red cause if one of the 3 is different the color will be different.

if r ~= r2 then

--not the same collor

end

No need to check all 3 of 'em. :)

  • Moderators
Posted (edited)

You can only check for red cause if one of the 3 is different the color will be different.

No need to check all 3 of 'em. :)

I do not agree with that.

Colour 1: 255, 100, 50

Colour 2: 255, 70, 50 <-

Edited by IIYAMA

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...