My program receives two numbers from the user as follows...
first_color = int(input("Input first color: "), 16)
second_color = int(input("Input second color: "), 16)
generate = int(input("Enter the number of colors I will make between the two input numbers"))
For example, if the user enters 0x030303, 0x454545 and 3; there should be five outputs (all in hexadecimal); the two input numbers and the three numbers evenly spread out between the two input numbers.
To be clear about the numbers my program aims to make between the two input numbers; I'll use a similar example with decimal numbers...
User enters 10, 2 and 3. The program outputs 2, 4, 6, 8, 10 (the original two input numbers and the three numbers evenly spread out between the two input numbers).
I'm having a lot of trouble trying to generate the hexadecimal numbers evenly spread out between the two input numbers. I don't want to import anything to achieve this. I want to split the smaller hexadecimal number (from user) into the RGB components and then increment into the successive hexadecimal numbers.