Method: ProMotion::Styling#rgba_color

Defined in:
lib/ProMotion/view/styling.rb

#rgba_color(r, g, b, a) ⇒ Object



99
100
101
102
# File 'lib/ProMotion/view/styling.rb', line 99

def rgba_color(r,g,b,a)
  r,g,b = [r,g,b].map { |i| i / 255.0}
  UIColor.colorWithRed(r, green: g, blue:b, alpha:a)
end