module Chromate::Lab
Constants
- COLORS
L*a*b* array representations of the 256 xterm colors
Public Class Methods
difference(lab1, lab2)
click to toggle source
Determine the difference (delta-E 1976) between two L*a*b* color values. @param lab1 [<Integer>] a L*a*b* array @param lab2 [<Integer>] another L*a*b* array
@return [Integer]
# File lib/chromate/lab.rb, line 271 def self.difference(lab1, lab2) Math.sqrt( (lab1[0] - lab2[0]) ** 2 + (lab1[1] - lab2[1]) ** 2 + (lab1[2] - lab2[2]) ** 2 ) end