Sha256: f4e66fd4101027ccd2ee5135cac431bac9dba476cd69ca32322418f0a226ae7e

Contents?: true

Size: 741 Bytes

Versions: 3

Compression:

Stored size: 741 Bytes

Contents

require 'cairo'
require_relative 'arg_loader'
require_relative 'dir_validator'

module Squib::Args
  module_function def extract_showcase_special(opts, deck)
    ShowcaseSpecial.new.extract! opts, deck
  end

  class ShowcaseSpecial
    include ArgLoader
    include DirValidator

    def self.parameters
      {
        scale: 0.85,
        trim: 0,
        trim_radius: 38,
        offset: 1.1,
        reflect_offset: 15,
        reflect_percent: 0.25,
        reflect_strength: 0.2,
        face: :left,
      }
    end

    def self.expanding_parameters
      [] # none of them
    end

    def self.params_with_units
      [ :reflect_offset ]
    end

    def face_right?
      @face.to_s.strip.downcase == 'right'
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
squib-0.19.0 lib/squib/args/showcase_special.rb
squib-0.19.0b lib/squib/args/showcase_special.rb
squib-0.19.0a lib/squib/args/showcase_special.rb