06-08-2023, 10:54 PM
Darling, I don't embark on an adventure unless I see a clear path to the goal.
The script uses GD to get pixel colors from an image.
The author wrote a Python function to find the closet color to each pixel color in a given palette.
Buuuuuuuut...
GD already has a function for that.
My plan is to create a 256 color GIF containing all of the ANSI colors. Then GD can simply load that image to have a palette for color reduction.
The script uses GD to get pixel colors from an image.
The author wrote a Python function to find the closet color to each pixel color in a given palette.
Buuuuuuuut...
GD already has a function for that.
My plan is to create a 256 color GIF containing all of the ANSI colors. Then GD can simply load that image to have a palette for color reduction.