Sha256: 81e5d65c4a70bd472b0a8897ca3bfb880e1ce9eea3fbfeaa693ddd524b4ec7e9

Contents?: true

Size: 631 Bytes

Versions: 5

Compression:

Stored size: 631 Bytes

Contents

# frozen_string_literal: true

b = box({ id: :the_box, left: 99, top: 99 })




s = b.shadow({ renderers: [:browser], id: :shadow2, type: :shadow, attach: [],
               left: 3, top: 9, blur: 3, direction: :inset,
               red: 0, green: 0, blue: 0, alpha: 1
             })


wait 1 do
  s.attach([:the_box])
  # or
  # b.children([:shadow2])
  wait 1 do
    s.blur(9)
    wait 1 do
      wait 2 do
        s.direction('')
        s.green(0)
        s.left(14)
        wait 1 do
          s.delete(true)
        end
      end
      s.left(44)
      s.green(0.7)
    end
  end
end

wait 3 do
  b.shadow({ blur: 33 })
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
atome-0.5.4.1.3 vendor/assets/src/medias/rubies/examples/shadow.rb
atome-0.5.4.1.2 vendor/assets/src/medias/rubies/examples/shadow.rb
atome-0.5.4.1.1 vendor/assets/src/medias/rubies/examples/shadow.rb
atome-0.5.4.1.0 vendor/assets/src/medias/rubies/examples/shadow.rb
atome-0.5.4.0.9 vendor/assets/src/medias/rubies/examples/shadow.rb