Sha256: a5669d59dec93acf8f940eaf1438bc5bb8f74075b7bb0e4aa52168d199a7b984

Contents?: true

Size: 604 Bytes

Versions: 3

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

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

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


wait 1 do
  s.parents([: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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
atome-0.5.1.9 vendor/assets/build/medias/rubies/examples/shadow.rb
atome-0.5.1.4 vendor/assets/build/medias/rubies/examples/shadow.rb
atome-0.5.1.1 vendor/assets/build/medias/rubies/examples/shadow.rb