Sha256: 0dad5b8d53cb148e1d9ad4fc8caae50fa156dbf346b24d8de21038fecccf6129

Contents?: true

Size: 514 Bytes

Versions: 22

Compression:

Stored size: 514 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 {
          skew 0.15, 0.15
          translate 50, 50
          rotate 100, 100, -9 * n
          scale 1.1, 1.1
        }
      }
    end
  }
}.show

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.2.15 examples/basic_transform.rb
glimmer-dsl-libui-0.2.14 examples/basic_transform.rb
glimmer-dsl-libui-0.2.13 examples/basic_transform.rb
glimmer-dsl-libui-0.2.12 examples/basic_transform.rb
glimmer-dsl-libui-0.2.11 examples/basic_transform.rb
glimmer-dsl-libui-0.2.10 examples/basic_transform.rb
glimmer-dsl-libui-0.2.9 examples/basic_transform.rb
glimmer-dsl-libui-0.2.8 examples/basic_transform.rb
glimmer-dsl-libui-0.2.7 examples/basic_transform.rb
glimmer-dsl-libui-0.2.6 examples/basic_transform.rb
glimmer-dsl-libui-0.2.5 examples/basic_transform.rb
glimmer-dsl-libui-0.2.4 examples/basic_transform.rb
glimmer-dsl-libui-0.2.3 examples/basic_transform.rb
glimmer-dsl-libui-0.2.2 examples/basic_transform.rb
glimmer-dsl-libui-0.2.1 examples/basic_transform.rb
glimmer-dsl-libui-0.2.0 examples/basic_transform.rb
glimmer-dsl-libui-0.1.11 examples/basic_transform.rb
glimmer-dsl-libui-0.1.10 examples/basic_transform.rb
glimmer-dsl-libui-0.1.9 examples/basic_transform.rb
glimmer-dsl-libui-0.1.8 examples/basic_transform.rb