Sha256: bfc6c1312ab1f25b8e735ceff908ec879624aba33f8394b779a2b1a77637f0cf

Contents?: true

Size: 1.06 KB

Versions: 35

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

b = box({ top: 166 , id: :the_box, left: 333})
b.color({id: :new_col, red: 1})
b.color({id: :other_col,  green: 1})
# b.paint({gradient: [:other_col, :new_col]})
color({id: :last_col,  green: 0.3, blue: 0.5})
color({id: :last_col2,  red: 1, blue: 0.5})

b.shadow({
           id: :s1,
           # affect: [:the_circle],
           left: 9, top: 3, blur: 9,
           invert: false,
           red: 0, green: 0, blue: 0, alpha: 1
         })
wait 1 do
  b.remove(:other_col)
  wait 1 do
    b.remove(:new_col)
    wait 1 do
      b.remove(:box_color)
      wait 1 do
        b.apply(:last_col)
        wait 1 do
          b.apply(:last_col2)
        end
      end
    end
  end
end
b.touch(true) do
  puts "before => #{b.apply}"
  b.remove({all: :color})
  puts "after => #{b.apply}"
  wait 1 do
    b.paint({id: :the_gradient_1,gradient: [:box_color, :circle_color]})
    b.paint({id: :the_gradient,gradient: [:other_col, :new_col]})
    wait 1 do
      b.remove(:the_gradient)
      wait 1 do
        b.remove(all: :shadow)
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
atome-0.5.6.4.0 vendor/assets/application/examples/remove.rb
atome-0.5.6.3.9 vendor/assets/application/examples/remove.rb
atome-0.5.6.3.6 vendor/assets/application/examples/remove.rb
atome-0.5.6.3.5 vendor/assets/application/examples/remove.rb
atome-0.5.6.3.1 vendor/assets/application/examples/remove.rb
atome-0.5.6.3.0 vendor/assets/application/examples/remove.rb
atome-0.5.6.2.9 vendor/assets/application/examples/remove.rb
atome-0.5.6.2.7 vendor/assets/application/examples/remove.rb
atome-0.5.6.2.5 vendor/assets/application/examples/remove.rb
atome-0.5.6.2.4 vendor/assets/application/examples/remove.rb
atome-0.5.6.2.3 vendor/assets/application/examples/remove.rb
atome-0.5.6.2.1 vendor/assets/application/examples/remove.rb
atome-0.5.6.2.0 vendor/assets/application/examples/remove.rb
atome-0.5.6.1.9 vendor/assets/application/examples/remove.rb
atome-0.5.6.1.4 vendor/assets/application/examples/remove.rb
atome-0.5.6.1.1 vendor/assets/application/examples/remove.rb
atome-0.5.6.1.0 vendor/assets/application/examples/remove.rb
atome-0.5.6.0.4 vendor/assets/application/examples/remove.rb
atome-0.5.6.0.3 vendor/assets/application/examples/remove.rb
atome-0.5.6.0.2 vendor/assets/application/examples/remove.rb