Sha256: 2b35b1f1eab711bdaaed48f39d6fd5e5dc4aa8c045261674026431ca9e92467c

Contents?: true

Size: 657 Bytes

Versions: 12

Compression:

Stored size: 657 Bytes

Contents

require 'glimmer-dsl-libui'

include Glimmer

window('Basic Transform', 350, 350) {
  area {
    path {
      square(0, 0, 350)
      
      fill r: 255, g: 255, b: 0
    }
    40.times do |n|
      path {
        square(0, 0, 100)
        
        fill r: [255 - n*5, 0].max, g: [n*5, 255].min, b: 0, a: 0.5
        stroke :black, thickness: 2
        transform {
          unless OS.windows?
            skew 0.15, 0.15
            translate 50, 50
          end
          rotate 100, 100, -9 * n
          scale 1.1, 1.1
          if OS.windows?
            skew 0.15, 0.15
            translate 50, 50
          end
        }
      }
    end
  }
}.show

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.3.2 examples/basic_transform.rb
glimmer-dsl-libui-0.3.1 examples/basic_transform.rb
glimmer-dsl-libui-0.3.0 examples/basic_transform.rb
glimmer-dsl-libui-0.2.24 examples/basic_transform.rb
glimmer-dsl-libui-0.2.23 examples/basic_transform.rb
glimmer-dsl-libui-0.2.22 examples/basic_transform.rb
glimmer-dsl-libui-0.2.21 examples/basic_transform.rb
glimmer-dsl-libui-0.2.20 examples/basic_transform.rb
glimmer-dsl-libui-0.2.19 examples/basic_transform.rb
glimmer-dsl-libui-0.2.18 examples/basic_transform.rb
glimmer-dsl-libui-0.2.17 examples/basic_transform.rb
glimmer-dsl-libui-0.2.16 examples/basic_transform.rb