Class: UIColor
- Inherits:
-
Object
- Object
- UIColor
- Defined in:
- lib/swipe_action_cell/ui_color.rb
Instance Method Summary collapse
Instance Method Details
#alpha ⇒ Object
18 19 20 21 |
# File 'lib/swipe_action_cell/ui_color.rb', line 18 def alpha c = CGColorGetComponents(self.CGColor) c[CGColorGetNumberOfComponents(self.CGColor) - 1] end |
#blue ⇒ Object
13 14 15 16 |
# File 'lib/swipe_action_cell/ui_color.rb', line 13 def blue c = CGColorGetComponents(self.CGColor) c[2] end |
#green ⇒ Object
8 9 10 11 |
# File 'lib/swipe_action_cell/ui_color.rb', line 8 def green c = CGColorGetComponents(self.CGColor) c[1] end |
#red ⇒ Object
3 4 5 6 |
# File 'lib/swipe_action_cell/ui_color.rb', line 3 def red c = CGColorGetComponents(self.CGColor) c[0] end |