Sha256: 154e492f6b87b5d950436ebd444a94493a2c89c4869d37a07bdd3dba203c54e4
Contents?: true
Size: 1.16 KB
Versions: 84
Compression:
Stored size: 1.16 KB
Contents
# frozen_string_literal: true text({ id: :the_text,data: 'Touch me to group and colorize', center: true, top: 120, width: 77, component: { size: 11 } }) box({ left: 12, id: :the_first_box }) the_circle = circle({ id: :cc, color: :yellowgreen, top: 222 }) the_circle.image({path: 'medias/images/red_planet.png', id: :the__red_planet }) the_circle.color('red') the_circle.box({ left: 333, id: :the_c }) element({ id: :the_element }) the_view = grab(:view) color({ id: :the_orange, red: 1, green: 0.4 }) color({ id: :the_lemon, red: 1, green: 1 }) the_group = group({ collect: the_view.shape }) wait 0.5 do the_group.left(633) wait 0.5 do the_group.rotate(23) wait 0.5 do the_group.apply([:the_orange]) the_group.blur(6) end end end puts the_group.collect grab(:the_first_box).smooth(9) grab(:the_text).touch(true) do bibi=box({left: 555}) the_group2= group({ collect: [:the_c,:the_first_box, :the_text, :cc , bibi.id] }) the_group2.top(55) # puts we remove the circle(:cc) so it' wont be affected by the color :the_lemon the_group2.collect.delete( :cc ) the_group2.apply([:the_lemon]) end # # # FIXME : on touch code above crash but works with wait
Version data entries
84 entries across 84 versions & 1 rubygems