Sha256: dcde64a2b464e47a0bdefeea65aeca9d8fe1b3b538fe2dc2022cd78ee3958b64

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

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: 120, top: 33, width: 199, height: 33,

  }
)

Atome.new(color: { renderers: [:browser], id: :c31, type: :color, parents: [:text1], children: [],
                   red: 0.6, green: 0.6, blue: 0.6, alpha: 1 })

wait 1 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: 333, top: 33, width: 199, height: 33,

  }
)



Atome.new(color: { renderers: [:browser], id: :c33, type: :color, parents: [:text2], children: [],
                   red: 0.6, green: 0.6, blue: 0.1, alpha: 1 })
wait 2 do
  text2.data(:ok)
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
atome-0.5.3.8.1 vendor/assets/src/medias/rubies/examples/text.rb
atome-0.5.3.8.0 vendor/assets/src/medias/rubies/examples/text.rb
atome-0.5.3.7.8 vendor/assets/src/medias/rubies/examples/text.rb