Sha256: 59a087570ce9fc39518a88e8a5f256b9ee54c3ea3d88377dbbb5f39f32450c6d

Contents?: true

Size: 1.31 KB

Versions: 32

Compression:

Stored size: 1.31 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)
          b.remove(:s1)
        end
      end
    end
  end
end
b.touch(true) do
  b.shadow({
             id: :s1,
             # affect: [:the_circle],
             left: 9, top: 3, blur: 9,
             invert: false,
             red: 0, green: 0, blue: 0, alpha: 1
           })

  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)
        b.color(:cyan)
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
atome-0.5.6.6.7 vendor/assets/application/examples/remove.rb
atome-0.5.6.6.5 vendor/assets/application/examples/remove.rb
atome-0.5.6.6.1 vendor/assets/application/examples/remove.rb
atome-0.5.6.6.0 vendor/assets/application/examples/remove.rb
atome-0.5.6.5.7 vendor/assets/application/examples/remove.rb
atome-0.5.6.5.6 vendor/assets/application/examples/remove.rb
atome-0.5.6.5.4 vendor/assets/application/examples/remove.rb
atome-0.5.6.5.1 vendor/assets/application/examples/remove.rb
atome-0.5.6.4.8 vendor/assets/application/examples/remove.rb
atome-0.5.6.4.5 vendor/assets/application/examples/remove.rb
atome-0.5.6.4.2 vendor/assets/application/examples/remove.rb
atome-0.5.6.4.1 vendor/assets/application/examples/remove.rb