Click here to Skip to main content
15,890,282 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Talk about demoralizing Pin
Espen Harlinn17-Jun-21 15:56
professionalEspen Harlinn17-Jun-21 15:56 
GeneralRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 16:45
mvahoney the codewitch17-Jun-21 16:45 
GeneralRe: Talk about demoralizing Pin
David O'Neil17-Jun-21 20:32
professionalDavid O'Neil17-Jun-21 20:32 
GeneralRe: Talk about demoralizing Pin
lmoelleb17-Jun-21 20:19
lmoelleb17-Jun-21 20:19 
GeneralRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 20:25
mvahoney the codewitch17-Jun-21 20:25 
QuestionRe: Talk about demoralizing Pin
honey the codewitch17-Jun-21 20:27
mvahoney the codewitch17-Jun-21 20:27 
AnswerRe: Talk about demoralizing Pin
lmoelleb21-Jun-21 3:49
lmoelleb21-Jun-21 3:49 
GeneralRe: Talk about demoralizing Pin
honey the codewitch21-Jun-21 6:30
mvahoney the codewitch21-Jun-21 6:30 
lmoelleb wrote:
Palette entries where allocated based on one or another algorithm based on distance to nearest "existing" color, the number of pixels using the color, and the number of free palette entries.



I'm not sure what you mean by nearest existing color, as my algo has to find *two* colors in order to determine what to blend with what. I have a KD tree implementation waiting in the wings for larger palettes since it sorts in such a way as to speed up distance based matching, but it's not helpful for say, 16 colors. I may "pre-expand" the palette, mixing colors beforehand, so a 16 color palette becomes (16*15)/2 colors, and then trying throwing that into a kd_tree and see what happens.

But that's my biggest issue, is finding the two colors to blend. The rest is fast.
Real programmers use butterflies

GeneralRe: Talk about demoralizing Pin
lmoelleb22-Jun-21 1:45
lmoelleb22-Jun-21 1:45 
GeneralRe: Talk about demoralizing Pin
honey the codewitch22-Jun-21 1:59
mvahoney the codewitch22-Jun-21 1:59 
GeneralRe: Talk about demoralizing Pin
Daniel Pfeffer17-Jun-21 22:50
professionalDaniel Pfeffer17-Jun-21 22:50 
GeneralRe: Talk about demoralizing Pin
honey the codewitch18-Jun-21 2:09
mvahoney the codewitch18-Jun-21 2:09 
GeneralThought of the Day Pin
OriginalGriff17-Jun-21 4:34
mveOriginalGriff17-Jun-21 4:34 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer17-Jun-21 4:58
professionalDaniel Pfeffer17-Jun-21 4:58 
GeneralRe: Thought of the Day Pin
W Balboos, GHB17-Jun-21 5:15
W Balboos, GHB17-Jun-21 5:15 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer17-Jun-21 5:33
professionalDaniel Pfeffer17-Jun-21 5:33 
GeneralRe: Thought of the Day Pin
W Balboos, GHB17-Jun-21 5:13
W Balboos, GHB17-Jun-21 5:13 
GeneralRe: Thought of the Day Pin
PIEBALDconsult17-Jun-21 5:30
mvePIEBALDconsult17-Jun-21 5:30 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer17-Jun-21 5:40
professionalDaniel Pfeffer17-Jun-21 5:40 
JokeThings that make you go hmm... Pin
Mike Hankey17-Jun-21 4:30
mveMike Hankey17-Jun-21 4:30 
GeneralRe: Things that make you go hmm... Pin
Daniel Pfeffer17-Jun-21 5:05
professionalDaniel Pfeffer17-Jun-21 5:05 
GeneralRe: Things that make you go hmm... Pin
PIEBALDconsult17-Jun-21 5:36
mvePIEBALDconsult17-Jun-21 5:36 
GeneralRe: Things that make you go hmm... Pin
Mike Hankey17-Jun-21 5:40
mveMike Hankey17-Jun-21 5:40 
GeneralRe: Things that make you go hmm... Pin
MarkTJohnson17-Jun-21 5:55
professionalMarkTJohnson17-Jun-21 5:55 
GeneralRe: Things that make you go hmm... Pin
charlieg18-Jun-21 2:04
charlieg18-Jun-21 2:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.