Sha256: 3483cd5c9c76c41f3f9f5100159f7bd99195032edaf611158948e2e03f6d7adb

Contents?: true

Size: 1.3 KB

Versions: 21

Compression:

Stored size: 1.3 KB

Contents

# frozen_string_literal: true

c = circle({ id: :the_circle, left: 122, color: :orange, drag: { move: true, inertia: true, lock: :start } })
 c.color({ id: :col1, red: 1, blue: 1 })

 c.shadow({
              id: :s1,
              # affect: [:the_circle],
              left: 9, top: 3, blur: 9,
              invert: false,
              red: 0, green: 0, blue: 0, alpha: 1
            })

shadow({
           id: :s2,
           affect: [:the_circle],
           left: 3, top: 9, blur: 9,
           invert: true,
           red: 0, green: 0, blue: 0, alpha: 1
         })

c.shadow({
           id: :s4,
           left: 20, top: 0, blur: 9,
           option: :natural,
           red: 0, green: 1, blue: 0, alpha: 1
         })

wait 2 do
  c.remove(:s4)
  wait 2 do
    c.remove({ all: :shadow })
  end
end


the_text = text({ data: 'text with shadow!', center: true, top: 222, width: 777, component: { size: 66 }, id: :my_text })


the_text.shadow({
           id: :my_shadow,
           left: 6, top: 6, blur: 6,
           option: :natural,
           red: 0, green: 0, blue: 0, alpha: 1
         })

the_text.left(255)
the_text.top(66)
the_text.color(:red)

wait 1 do
  text_shadow= grab(:my_shadow)
  text_shadow.alpha(0.5)
  text_shadow.left(120)
  text_shadow.blur({ value: 1 })

  # grab(:my_text).refresh(true)

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
atome-0.5.7.0.3 vendor/assets/application/examples/shadow.rb
atome-0.5.7.0.2 vendor/assets/application/examples/shadow.rb
atome-0.5.6.8.7 vendor/assets/application/examples/shadow.rb
atome-0.5.6.8.6 vendor/assets/application/examples/shadow.rb
atome-0.5.6.8.5 vendor/assets/application/examples/shadow.rb
atome-0.5.6.8.3 vendor/assets/application/examples/shadow.rb
atome-0.5.6.7.8 vendor/assets/application/examples/shadow.rb
atome-0.5.6.7.7 vendor/assets/application/examples/shadow.rb
atome-0.5.6.7.6 vendor/assets/application/examples/shadow.rb
atome-0.5.6.7.5 vendor/assets/application/examples/shadow.rb
atome-0.5.6.7.4 vendor/assets/application/examples/shadow.rb
atome-0.5.6.7.3 vendor/assets/application/examples/shadow.rb
atome-0.5.6.6.9 vendor/assets/application/examples/shadow.rb
atome-0.5.6.6.7 vendor/assets/application/examples/shadow.rb
atome-0.5.6.6.5 vendor/assets/application/examples/shadow.rb
atome-0.5.6.6.1 vendor/assets/application/examples/shadow.rb
atome-0.5.6.6.0 vendor/assets/application/examples/shadow.rb
atome-0.5.6.5.7 vendor/assets/application/examples/shadow.rb
atome-0.5.6.5.6 vendor/assets/application/examples/shadow.rb
atome-0.5.6.5.4 vendor/assets/application/examples/shadow.rb