Sha256: e01127ccacb54ef0d38075ff8d813ee70e217cbeaa483cd89301d5dcdbcbaadc

Contents?: true

Size: 743 Bytes

Versions: 12

Compression:

Stored size: 743 Bytes

Contents

# frozen_string_literal: true

text = Atome.new(
  text: { renderers: [:browser], id: :my_text, type: :text, parents: [:view], children: [], visual: { size: 18 },
          data: 'My first text!', left: 300, top: 33, width: 199, height: 33,
          color: { renderers: [:browser], id: :c31, type: :color, parents: [:my_text], children: [],
                   red: 0.6, green: 0.6, blue: 0.6, alpha: 1 }
  }
)

Atome.new({ color: { renderers: [:browser], id: :new_col, type: :color, parents: [], children: [],
                     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.link(:new_col)
end
wait 2 do
  grab(:new_col).red(1)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
atome-0.5.3.8.1 vendor/assets/src/medias/rubies/examples/link.rb
atome-0.5.3.8.0 vendor/assets/src/medias/rubies/examples/link.rb
atome-0.5.3.7.8 vendor/assets/src/medias/rubies/examples/link.rb
atome-0.5.3.7.3 vendor/assets/src/medias/rubies/examples/link.rb
atome-0.5.3.7.2 vendor/assets/src/medias/rubies/examples/link.rb
atome-0.5.3.4 vendor/assets/src/medias/rubies/examples/link.rb
atome-0.5.3.2 vendor/assets/src/medias/rubies/examples/link.rb
atome-0.5.2.8 vendor/assets/src/medias/rubies/examples/link.rb
atome-0.5.2.7 vendor/assets/build/medias/rubies/examples/link.rb
atome-0.5.2.5 vendor/assets/build/medias/rubies/examples/link.rb
atome-0.5.1.9 vendor/assets/build/medias/rubies/examples/link.rb
atome-0.5.1.4 vendor/assets/build/medias/rubies/examples/link.rb