Sha256: d0cb7e66d4d736102cb35483513a8d29fc69068386bd2248ef554e961b350c68
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true c = circle({ id: :the_circle, left: 122, color: :orange, drag: { move: true, inertia: true, lock: :start } }) c.color({ id: :col1, red: 1, blue: 1 }) c.shadow({ id: :s1, # affect: [:the_circle], left: 9, top: 3, blur: 9, invert: false, red: 0, green: 0, blue: 0, alpha: 1 }) shadow({ id: :s2, affect: [:the_circle], left: 3, top: 9, blur: 9, invert: true, red: 0, green: 0, blue: 0, alpha: 1 }) c.shadow({ id: :s4, left: 20, top: 0, blur: 9, option: :natural, red: 0, green: 1, blue: 0, alpha: 1 }) wait 2 do c.remove(:s4) wait 2 do c.remove({ all: :shadow }) end end the_text = text({ data: 'text with shadow!', center: true, top: 222, width: 777, component: { size: 66 } }) the_text.shadow({ id: :my_shadow, left: 6, top: 6, blur: 6, option: :natural, red: 0, green: 0, blue: 0, alpha: 1 }) the_text.left(255) the_text.top(66) the_text.color(:red)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
atome-0.5.6.4.8 | vendor/assets/application/examples/shadow.rb |