Sha256: 4776a07e4e58cb78689e2d27d50994e584ef7fd3de7811480959b36cc72b5083

Contents?: true

Size: 754 Bytes

Versions: 2

Compression:

Stored size: 754 Bytes

Contents

include Glimmer

glimmer_logo = File.expand_path('./hello_canvas_transform/hello_canvas_transform_image.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

2 entries across 2 versions & 1 rubygems

Version Path
glimmer-dsl-swt-4.18.4.3 samples/hello/hello_canvas_transform.rb
glimmer-dsl-swt-4.18.4.2 samples/hello/hello_canvas_transform.rb