Sha256: 05a1922c6eec45e818f1c6e824e4b14c088d9c00d1298e956232126695e89b0e

Contents?: true

Size: 713 Bytes

Versions: 2

Compression:

Stored size: 713 Bytes

Contents

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

module Squib
  # @api private
  module Args

    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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
squib-0.15.2 lib/squib/args/showcase_special.rb
squib-0.15.1 lib/squib/args/showcase_special.rb