Sha256: f654cb2ff7aa10bc326de34e7ef7ced4515f0fb25b1d866368cd101563789532
Contents?: true
Size: 530 Bytes
Versions: 60
Compression:
Stored size: 530 Bytes
Contents
# frozen_string_literal: true c = circle({ height: 400, width: 200, top: 100, left: 0, top: 100 }) b = c.box({ width: 200, height: 100, left: 600, top: 200, id: :my_box }) c.circle({ width: 200, height: 100, left: 120, top: -80, id: :my_text, data: :hi }) b.circle({ color: :yellow, width: 55, height: 88, left: 500 }) b.box wait 1 do # recursive apply the new size to all attached atomes recursively # reference : change the size according the to wanted axis c.size({value: 50, recursive: true, reference: :y }) end
Version data entries
60 entries across 60 versions & 1 rubygems