Sha256: 97d31ec93d746e204c840f4728b49b3c3f5be7d2ee10ed419411e41caa3e16d5

Contents?: true

Size: 1.32 KB

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
atome-0.5.6.3.9 vendor/assets/application/examples/gradient.rb