Sha256: 649d63ebfe476e39de8b742e23d197b790c40596ad7f179cf3aa4be2113963f7
Contents?: true
Size: 573 Bytes
Versions: 11
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true a = box({ width: 333, height: 333, id: :the_grid }) i = 0 while i < 16 b = Atome.new( shape: { renderers: [:browser],id: "the_shape#{i}", type: :shape, parents: [:the_grid], children: [], width: 50, height: 50, color: { renderers: [:browser], id: :c31, type: :color, parents: ["the_shape#{i}"], children: [], 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
11 entries across 11 versions & 1 rubygems