Sha256: aff840d7414681e3ef851bce4b3b04cb9e7a11cc0b243b2e2ddc26a52437ff03

Contents?: true

Size: 237 Bytes

Versions: 1

Compression:

Stored size: 237 Bytes

Contents

module Straightedge::Aspects
  module Colorable
    attr_reader :color
    def paint(c=Straightedge::Colors.pick)
      @color = c
    end

    def dim
      @color = Straightedge::Colors.hex_value(@color) - 0x4B4B4B4B
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
straightedge-0.1.2 lib/straightedge/aspects/colorable.rb