Sha256: 351860b0659769169074e09fefcb832ac41b41ed47cafe4e4de8ea6a1882afe6
Contents?: true
Size: 727 Bytes
Versions: 7
Compression:
Stored size: 727 Bytes
Contents
# frozen_string_literal: true b=box margin = 12 b2=box({top: below(b, margin)}) b3=box({top: below(b2, margin)}) b4=box({top: below(b3, margin)}) box({top: below(b4, margin)}) i=0 b = circle(left: 333, top: 333) margin = "2%" # margin = 120 i = 0 while i < 10 do #below first params is the object after which we place the objet, the second the margin # here in percent and the third is the reference object used for the percent # b = circle({top: below(b, margin, grab(:view)), left: b.left}) # b = circle({top: :auto,bottom: above(b, margin, grab(:view)), left: b.left}) b = circle({top: b.top,left: after(b, margin, grab(:view))}) # b = circle({left: :auto,right: before(b, margin, grab(:view))}) i += 1 end
Version data entries
7 entries across 7 versions & 1 rubygems