Sha256: 436bff073400665e68d3875a34eab10b3d089dcdf81ee29d8ed23402c05d351d

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

Shoes.app width: 300, height: 300 do
  10.times do |i|
    # light to dark
    flow(width: 0.5, height: 30) do
      background forestgreen(0.1 * (i + 1))
      para 'hello'
    end

    # dark to light
    flow(width: 0.5, height: 30) do
      background orangered(1.0 - 0.1 * i)
      para 'shoes'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.rc1 samples/simple_brightness_transitions.rb