Class: ColorPicker::NodeColors

Inherits:
Object
  • Object
show all
Defined in:
lib/color_picker.rb

Instance Method Summary collapse

Instance Method Details

#color(index, ingress) ⇒ Object



9
10
11
# File 'lib/color_picker.rb', line 9

def color(index, ingress)
  ColorPicker::COLORS[index % ColorPicker::COLORS.length]
end