Sha256: cac1f520cc805c54937a6e8aa69f89f54c55e30876c138746c0c11b4de8741d9
Contents?: true
Size: 683 Bytes
Versions: 8
Compression:
Stored size: 683 Bytes
Contents
# frozen_string_literal: true text = Atome.new( text: { renderers: [:browser], id: :my_text, type: :text, attach: [:view], visual: { size: 18 }, data: 'My first text!', left: 300, top: 33, width: 199, height: 33, } ) color({ renderers: [:browser], id: :c31, type: :color, attach: [:my_text], red: 0.6, green: 0.6, blue: 0.6, alpha: 1 }) Atome.new({ color: { renderers: [:browser], id: :new_col, type: :color, attach: [], left: 33, top: 66, red: 0, green: 0.15, blue: 0.7, alpha: 0.6 } }) # now we change the color all the object that share the care modified wait 1 do text.attached(:new_col) end wait 2 do grab(:new_col).red(1) end
Version data entries
8 entries across 8 versions & 1 rubygems