Sha256: 436a7212085a3541ce793eab3115cf6f69ec6152c409a2f7d1d4a69bc6dce5d3

Contents?: true

Size: 1.32 KB

Versions: 46

Compression:

Stored size: 1.32 KB

Contents

# frozen_string_literal: true

circ = circle({ drag: true })
circ.remove({ all: :color })
col_1 = circ.color(:white)
col_2 = circ.color({ red: 1, id: :red_col })
col_4 = circ.color({ blue: 1, id: :red_col2, alpha: 0.3 })
col_5 = circ.color({ red: 0, green: 1, id: :red_col3, alpha: 0.7 })
col_3 = circ.color(:yellow)
wait 0.5 do
  circ.paint({ gradient: [col_1.id, col_2.id], direction: :left })
  wait 0.5 do
    circ.paint({ id: :the_painter, rotate: 69, gradient: [col_1.id, col_2.id] })
    wait 0.5 do
      circ.color(:cyan)
      circ.paint({ gradient: [col_1.id, col_2.id, col_3.id], rotate: 33, diffusion: :conic })
      wait 0.5 do
        painter = circ.paint({ id: :the_painter2, gradient: [col_1.id, col_2.id, col_3.id], direction: :left })
        wait 0.5 do
          # circ.color(:blue)
          circ.paint({ gradient: [col_4.id, col_5.id], diffusion: :conic })
          wait 1 do
            circ.color(:blue)
            # circ.paint({ gradient: [col_5.id, col_5.id], diffusion: :conic })
          end
        end
      end
    end
  end

end

the_text = text({ data: 'hello for al the people in front of their machine', center: true, top: 222, width: 777, component: { size: 66 } })

the_text.left(333)

  the_text.paint({ gradient:  [col_1.id, col_2.id], direction: :left , id: :painted_love })

# #TODO : gradient on text!

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
atome-0.5.7.6.5 vendor/assets/src/medias/utils/examples/particles/gradient/example.rb
atome-0.5.7.6.0 vendor/assets/application/examples/gradient.rb
atome-0.5.7.5.9 vendor/assets/application/examples/gradient.rb
atome-0.5.7.5.4 vendor/assets/application/examples/gradient.rb
atome-0.5.7.5.3 vendor/assets/application/examples/gradient.rb
atome-0.5.7.5.1 vendor/assets/application/examples/gradient.rb
atome-0.5.7.4.8 vendor/assets/application/examples/gradient.rb
atome-0.5.7.4.7 vendor/assets/application/examples/gradient.rb
atome-0.5.7.4.6 vendor/assets/application/examples/gradient.rb
atome-0.5.7.4.3 vendor/assets/application/examples/gradient.rb
atome-0.5.7.4.2 vendor/assets/application/examples/gradient.rb
atome-0.5.7.3.9 vendor/assets/application/examples/gradient.rb
atome-0.5.7.3.6 vendor/assets/application/examples/gradient.rb
atome-0.5.7.3.5 vendor/assets/application/examples/gradient.rb
atome-0.5.7.3.3 vendor/assets/application/examples/gradient.rb
atome-0.5.7.3.2 vendor/assets/application/examples/gradient.rb
atome-0.5.7.3.1 vendor/assets/application/examples/gradient.rb
atome-0.5.7.3.0 vendor/assets/application/examples/gradient.rb
atome-0.5.7.1.8 vendor/assets/application/examples/gradient.rb
atome-0.5.7.1.7 vendor/assets/application/examples/gradient.rb