Update of "BlackAndWhite"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: e267dc950e371bb337e06d7851c75c9856ddc172
Page Name:BlackAndWhite
Date: 2013-08-31 13:52:13
Original User: user
Mimetype:text/x-markdown
Parent: 8e152894e98073e45cdc5e5a21b427e5f6b01772
Content

Black and White

It's very simple algorithm. The idea is to find length of RGB vector and length of biggest RGB vector (with colors 255, 255, 255) and if length of RGB vector is longer then some threshold (part of biggest RGB vector) - result color is white, black otherwise. So threshold (in percents) is needed to determine which color is black or white.