Class: Branding::PixelHiColor

Inherits:
Pixel
  • Object
show all
Defined in:
lib/branding/pixel.rb

Instance Attribute Summary

Attributes inherited from Pixel

#uint32

Instance Method Summary collapse

Methods inherited from Pixel

#==, #a, #b, #g, #initialize, #inspect, load_strategy, #r, rgb, #to_i, #to_rgb, #to_rgba, #width

Constructor Details

This class inherits a constructor from Branding::Pixel

Instance Method Details

#to_sObject



95
96
97
# File 'lib/branding/pixel.rb', line 95

def to_s
  "#{ANSI.bg(*ANSI.uint32_to_rgb(@uint32))}  "
end