Module: Termin::ANSIColor::RGBColorMetrics::Euclidean

Defined in:
lib/termin/ansicolor/rgb_color_metrics.rb

Overview

Implements color distance how the old greeks and most donkeys would…

Class Method Summary collapse

Class Method Details

.distance(rgb1, rgb2) ⇒ Object



53
54
55
# File 'lib/termin/ansicolor/rgb_color_metrics.rb', line 53

def self.distance(rgb1, rgb2)
  rgb1.weighted_euclidean_distance_to rgb2
end