Sha256: 078af74d5e5fb2a9ca70789bf49abfa663122b9fd21f9bda489aa816e25f1649
Contents?: true
Size: 558 Bytes
Versions: 33
Compression:
Stored size: 558 Bytes
Contents
# frozen_string_literal: true c=circle({drag: true, id: :the_circle}) c1=c.color(:white).id c2=c.color(:red).id c3=c.color(:yellow).id color({id: :toto, red: 1 , alpha: 0.5}) wait 0.5 do c.paint({ gradient: [c1,c2], direction: :left }) wait 0.5 do c.paint({ gradient: [c1,c2, c3], direction: :left }) wait 0.5 do c.paint({ gradient: [c1,c2], diffusion: :radial }) wait 0.5 do c.paint({ gradient: [c1,c2, c3], diffusion: :conic }) wait 0.5 do c.remove({all: :paint}) end end end end end
Version data entries
33 entries across 33 versions & 1 rubygems