Sha256: ca1b481d1000284a2cf76d44755e4f7c5ef25ddda4bc8b8aa75a5b3bb0f61e16

Contents?: true

Size: 934 Bytes

Versions: 8

Compression:

Stored size: 934 Bytes

Contents

# frozen_string_literal: true

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

wait 1.2 do
  my_text.data(:kool)
end

text({ id: :the_text, left: 0 })

text2 = Atome.new(
  text: { renderers: [:browser], id: :text2, type: :text, parents: [:view], children: [], visual: { size: 33 },
          data: 'My second text!', left: 300, top: 33, width: 199, height: 33 }
) do |p|
  puts "ok Atome.new(text) id is : #{id}"
end
wait 1.2 do
  text2.text.data(:ok)
end

b = box({ left: 66, top: 66 })
my_text = b.text({ data: 'drag the bloc behind me', width: 333, left: 55 })
wait 2 do
  my_text.color(:red)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
atome-0.5.3.4 vendor/assets/src/medias/rubies/examples/text.rb
atome-0.5.3.2 vendor/assets/src/medias/rubies/examples/text.rb
atome-0.5.2.8 vendor/assets/src/medias/rubies/examples/text.rb
atome-0.5.2.7 vendor/assets/build/medias/rubies/examples/text.rb
atome-0.5.2.5 vendor/assets/build/medias/rubies/examples/text.rb
atome-0.5.1.9 vendor/assets/build/medias/rubies/examples/text.rb
atome-0.5.1.4 vendor/assets/build/medias/rubies/examples/text.rb
atome-0.5.1.1 vendor/assets/build/medias/rubies/examples/text.rb