Sha256: af6dd7f482bd9d0c639a4c4256eb76bfd3caf8eea64ba25745994e6b149e66df

Contents?: true

Size: 254 Bytes

Versions: 1

Compression:

Stored size: 254 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.pre12 samples/simple_draw.rb