Sha256: 1548a824b598630e99d5287237e13c77208ea3c4d704040576a44d2869fb7eb4

Contents?: true

Size: 626 Bytes

Versions: 98

Compression:

Stored size: 626 Bytes

Contents

require 'glimmer-dsl-libui'

include Glimmer

window('Basic Transform', 350, 350) {
  area {
    square(0, 0, 350) {
      fill r: 255, g: 255, b: 0
    }
    40.times do |n|
      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

98 entries across 98 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.12.7 examples/basic_transform.rb
glimmer-dsl-libui-0.12.6 examples/basic_transform.rb
glimmer-dsl-libui-0.12.5 examples/basic_transform.rb
glimmer-dsl-libui-0.12.4 examples/basic_transform.rb
glimmer-dsl-libui-0.12.3 examples/basic_transform.rb
glimmer-dsl-libui-0.12.2 examples/basic_transform.rb
glimmer-dsl-libui-0.12.1 examples/basic_transform.rb
glimmer-dsl-libui-0.12.0 examples/basic_transform.rb
glimmer-dsl-libui-0.11.10 examples/basic_transform.rb
glimmer-dsl-libui-0.11.9 examples/basic_transform.rb
glimmer-dsl-libui-0.11.8 examples/basic_transform.rb
glimmer-dsl-libui-0.11.7 examples/basic_transform.rb
glimmer-dsl-libui-0.11.6 examples/basic_transform.rb
glimmer-dsl-libui-0.11.5 examples/basic_transform.rb
glimmer-dsl-libui-0.11.4 examples/basic_transform.rb
glimmer-dsl-libui-0.11.3 examples/basic_transform.rb
glimmer-dsl-libui-0.11.2 examples/basic_transform.rb
glimmer-dsl-libui-0.11.1 examples/basic_transform.rb
glimmer-dsl-libui-0.11.0 examples/basic_transform.rb
glimmer-dsl-libui-0.10.2 examples/basic_transform.rb