class Chaussettes::Effect::Fade

Represents a fade effect

Constants

TYPE_MAP

Attributes

commands[R]

Public Class Methods

new(in_len, stop_at = nil, out_len = nil, type: nil) click to toggle source
# File lib/chaussettes/effect/fade.rb, line 17
def initialize(in_len, stop_at = nil, out_len = nil, type: nil)
  real_type = TYPE_MAP.fetch(type)

  @commands = [ 'fade' ]
  @commands << real_type if real_type
  @commands << in_len
  @commands << stop_at if stop_at
  @commands << out_len if stop_at && out_len

  @commands.freeze
end