module Fzeet::UIRibbon::Color

Public Class Methods

enhance(hsb, ribbon, method) click to toggle source
# File lib/fzeet/windows/uiribbon.rb, line 473
def self.enhance(hsb, ribbon, method)
        hsb.instance_variable_set(:@ribbon, ribbon)
        hsb.instance_variable_set(:@method, method)

        class << hsb
                attr_reader :ribbon, :method

                include Color
        end

        hsb
end

Public Instance Methods

bleach(amount) click to toggle source
# File lib/fzeet/windows/uiribbon.rb, line 490
def bleach(amount) self[1] -= amount; ribbon.send("#{method}=", self); self end
darken(amount) click to toggle source
# File lib/fzeet/windows/uiribbon.rb, line 486
def darken(amount) self[2] -= amount; ribbon.send("#{method}=", self); self end
lighten(amount) click to toggle source
# File lib/fzeet/windows/uiribbon.rb, line 487
def lighten(amount) self[2] += amount; ribbon.send("#{method}=", self); self end
saturate(amount) click to toggle source
# File lib/fzeet/windows/uiribbon.rb, line 489
def saturate(amount) self[1] += amount; ribbon.send("#{method}=", self); self end
shift(amount) click to toggle source
# File lib/fzeet/windows/uiribbon.rb, line 492
def shift(amount) self[0] += amount; ribbon.send("#{method}=", self); self end