Class: TNS::Color::Tint

Inherits:
Variant show all
Defined in:
lib/tns/color/tint.rb

Overview

A variant of a color, which could be either a tint or a shade.

Instance Attribute Summary

Attributes inherited from Variant

#color, #step

Instance Method Summary collapse

Methods inherited from Variant

#initialize, #to_hex, #to_hsl

Methods inherited from Base

#==, #state, #to_css, #to_s

Constructor Details

This class inherits a constructor from TNS::Color::Variant

Instance Method Details

#indexObject



9
10
11
# File 'lib/tns/color/tint.rb', line 9

def index
  5 - step
end