Inverted / tasbot_eyes

Software, to control the eyes of the new TASBot, build by blastermak
BSD 2-Clause "Simplified" License
0 stars 3 forks source link

Same brightness for all pixel in monochrome animation #10

Open R3tr0BoiDX opened 1 year ago

R3tr0BoiDX commented 1 year ago

When an animation is monochrome, it's pixels can be colored in a randomly chosen color, to make everything more colorful (using the -c argument). However, the color that is used to overwrite isn't adjusting to the brightness of the given color within the frame. Right now it's flat overwriting the same color to all pixels, that just aren't black. The a solution would be, to calculate the brightness of the pixel and applying that to the random color for this pixel. Use the method getLuminance() for that.