Sha256: d4f52129e344de266a31c109e1bc529bb7fc0957acbb1217401808e217f74e95

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

# frozen_string_literal: true

Shoes.app do
  background "#999"
  stroke "#000"
  x = nil
  y = nil
  motion do |x2, y2|
    if x && y && ((x != x2) || (y != y2))
      append do
        line x, y, x2, y2
      end
    end
    x = x2
    y = y2
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.rc1 samples/simple_draw.rb