Skip to main content
broken images fixed (click 'rendered output' or 'side-by-side' to see the difference; image retrieved via Wayback Machine); for more info, see https://gist.github.com/Glorfindel83/9d954d34385d2ac2597bbe864466259f; 2 broken links fixed
Source Link
deleted 627 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23

[Important edit:] Fixed bugs in source code that caused the search in colorspace to fail (int->long to prevent overflow, max()->min() to prevent dark pixels to remain max() actually does that, but it makes the images bland and uninteresting. min() makes images with more contrast and paradoxically causes less dark pixels to remain at the very end.) Also replaced the min() altogether in favor of grayscale value for the third variant. This didn't reproduce interesting results with the other variants. Variant 2 is discouraged as it has no pros compared to the other two at all. It's only included for completeness.


I got this idea from fejesjocouser fejesjoco's algorithm and wanted to play a bit and wrote this, so I started to write my own algorithm from scratch.

This alghorithmalgorithm:

[Important edit:] Fixed bugs in source code that caused the search in colorspace to fail (int->long to prevent overflow, max()->min() to prevent dark pixels to remain max() actually does that, but it makes the images bland and uninteresting. min() makes images with more contrast and paradoxically causes less dark pixels to remain at the very end.) Also replaced the min() altogether in favor of grayscale value for the third variant. This didn't reproduce interesting results with the other variants. Variant 2 is discouraged as it has no pros compared to the other two at all. It's only included for completeness.


I got this idea from fejesjoco and wanted to play a bit and wrote this algorithm from scratch.

This alghorithm:

I got this idea from user fejesjoco's algorithm and wanted to play a bit, so I started to write my own algorithm from scratch.

This algorithm:

edited body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 88 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 108 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
edited body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
edited body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 125 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 1 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 13596 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 100 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 73 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 1579 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
deleted 1 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 311 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
edited body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 821 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 43 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 119 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
added 9346 characters in body
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading
Source Link
Mark Jeronimus
  • 7.2k
  • 6
  • 19
  • 23
Loading