0

I need to draw a Sierpinski Triangle for some homework. The task includes a random color picker for the triangle. As the background is white this may lead to problems with visibility.

My question is what is the minimum distance between two rgb values for them to still be easily distinguishable?

I am aware that this is rather subjective and depends on monitor, ambient light and the definition of "easily distinguishable" but a rough estimate would suffice. Web searches were mostly concerned with physical distance.

  • Welcome to SO! This seems like more of a graphic design problem than a programming problem. Have you tried [graphic design se](https://graphicdesign.stackexchange.com/help/on-topic)? – ggorlen Dec 21 '19 at 01:31
  • @jsotola I was only trying to add some pointless complexity to some programming homework and maybe learn a bit about color usage. The triangle I'm supposed to render is directly on a white background. – nullpo1nt3r Dec 21 '19 at 01:35
  • @ggorlen Thanks for the tip, stackoverflow seemed like first instinct when there's a problem with stuff with code, I'll check it out and edit my post to link to any responses there(if it isn't removed before). – nullpo1nt3r Dec 21 '19 at 01:36
  • maybe one of the values in the fractal equations can be used as a basis for color selection – jsotola Dec 21 '19 at 01:40
  • 1
    Check out this answer! https://stackoverflow.com/a/3943023/4329824 – DHerls Dec 21 '19 at 03:43

0 Answers0