Sha256: d7ac893d83bacfd79569c46f995f3c45ff6b036ed507d8485e8369347584aba3
Contents?: true
Size: 589 Bytes
Versions: 7
Compression:
Stored size: 589 Bytes
Contents
# frozen_string_literal: true a = box({ width: 180, height: 333, id: :the_grid, overflow: :scroll }) i = 0 while i < 16 b = Atome.new( shape: { renderers: [:browser],id: "the_shape#{i}", type: :shape, attach: [:the_grid], attached: [], width: 50, height: 50, color: { renderers: [:browser], id: :c31, type: :color, attach: ["the_shape#{i}"], attached: [], red: 1, green: 0.15, blue: 0.15, alpha: 0.6 } } ) b.text({ data: "item#{i + 1}", visual: { size: 12 } }) i += 1 end a.sort(true) do |el| puts "just sorted : #{el}" end
Version data entries
7 entries across 7 versions & 1 rubygems