Sha256: 14632540cc33cff281516d5ed798d0f7a0b67df3c247bcbd3df5d412c9188324

Contents?: true

Size: 650 Bytes

Versions: 27

Compression:

Stored size: 650 Bytes

Contents

require '../lib/green_shoes'

Shoes.app width: 500, height: 100, title: 'Bloopsaphone Play Lists'do
  background mediumspringgreen..hotpink, angle: 90
  nostroke
  
  plists = Dir.glob File.join(DIR, "ext/bloops/songs/*_by_*.rb")

  i = 0
  plists.each do |list|
    y = 10 + 24 * i
    song, auther = list.split('_by_').collect{|e| File.basename(e, '.rb').gsub('_', ' ')}
    
    rect width: 480, height: 20, left: 10, top: y, fill: rgb(75, 0, 130, 0.2), curve: 5
    pos = i.zero? ? {margin_left: 20, margin_top: 10} : {margin_left: 20}
    para link(song){load list}, '   ', fg(strong(auther), white), pos
    i += 1
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
green_shoes-1.0.337 samples/sample33.rb
green_shoes-1.0.331 samples/sample33.rb
green_shoes-1.0.322 samples/sample33.rb
green_shoes-1.0.320 samples/sample33.rb
green_shoes-1.0.309 samples/sample33.rb
green_shoes-1.0.303 samples/sample33.rb
green_shoes-1.0.282 samples/sample33.rb
green_shoes-1.0.273 samples/sample33.rb
green_shoes-0.263.0 samples/sample33.rb
green_shoes-0.255.0 samples/sample33.rb
green_shoes-0.243.0 samples/sample33.rb
green_shoes-0.233.0 samples/sample33.rb
green_shoes-0.227.0 samples/sample33.rb
green_shoes-0.226.0 samples/sample33.rb
green_shoes-0.221.0 samples/sample33.rb
green_shoes-0.214.0 samples/sample33.rb
green_shoes-0.207.0 samples/sample33.rb
green_shoes-0.201.0 samples/sample33.rb
green_shoes-0.198.0 samples/sample33.rb
green_shoes-0.189.0 samples/sample33.rb