Sha256: ac57fe542dcd9069e04c0b27ed518827c5d91a019a361a369b6cb691408247db

Contents?: true

Size: 752 Bytes

Versions: 40

Compression:

Stored size: 752 Bytes

Contents

require 'glimmer-dsl-swt'

include Glimmer

glimmer_logo = File.expand_path('../../icons/scaffold_app.png', __dir__)

shell {
  text 'Hello, Canvas Transform!'
  minimum_size 330, 352
  
  canvas {
    background :white

    image(glimmer_logo, 0, 0) {
      transform {
        translate 110, 110
        rotate 90
        scale 0.21, 0.21
      }
    }
    image(glimmer_logo, 0, 0) {
      transform {
        translate 110, 220
        scale 0.21, 0.21
      }
    }
    image(glimmer_logo, 0, 0) {
      transform {
        translate 220, 220
        rotate 270
        scale 0.21, 0.21
      }
    }
    image(glimmer_logo, 0, 0) {
      transform {
        translate 220, 110
        rotate 180
        scale 0.21, 0.21
      }
    }
  }
}.open

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
glimmer-dsl-swt-4.20.9.1 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.9.0 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.8.0 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.7.0 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.6.0 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.5.2 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.5.1 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.5.0 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.4.3 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.4.2 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.4.1 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.4.0 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.3.0 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.2.1 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.2.0 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.1.0 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.0.5 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.0.4 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.0.3 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.20.0.2 samples/hello/hello_canvas_transform.rb