Sha256: 81941566a993baf71db13abba69f48085035d4957c1396658c21849f0e16315b

Contents?: true

Size: 1.25 KB

Versions: 5

Compression:

Stored size: 1.25 KB

Contents

class PSD
  class LayerStyles
    # Not ready yet.
    class DropShadow
      def self.should_apply?(data)
        #data.has_key?('DrSh')
        false
      end

      def initialize(styles)
      end

      def apply!
      end

      private

      def apply_drop_shadow

      end

      def drop_shadow
        data['DrSh']
      end

      def drop_shadow_blend_mode
        drop_shadow['Md  ']
      end

      def drop_shadow_opacity
        drop_shadow['Opct'][:value]
      end

      def drop_shadow_light_angle
        drop_shadow['lagl'][:value]
      end

      def drop_shadow_use_global_light?
        drop_shadow['uglg']
      end

      def drop_shadow_distance
        drop_shadow['Dstn'][:value]
      end

      def drop_shadow_spread
        drop_shadow['Ckmt'][:value]
      end

      def drop_shadow_size
        drop_shadow['blur'][:value]
      end

      def drop_shadow_noise
        drop_shadow['Nose'][:value]
      end

      def drop_shadow_antialiased?
        drop_shadow['AntA']
      end

      def drop_shadow_contour
        drop_shadow['TrnS']['Nm  ']
      end

      def drop_shadow_contour_curve
        drop_shadow['TrnS']['Crv ']
      end

      def drop_shadow_knock_out?
        drop_shadow['layerConceals']
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
bench9000-0.1 vendor/psd.rb/lib/psd/renderer/layer_styles/drop_shadow.rb
psd-2.1.2 lib/psd/renderer/layer_styles/drop_shadow.rb
psd-2.1.1 lib/psd/renderer/layer_styles/drop_shadow.rb
psd-2.1.0 lib/psd/renderer/layer_styles/drop_shadow.rb
psd-2.0.0 lib/psd/renderer/layer_styles/drop_shadow.rb