Sha256: 9b13568ba6570b8d22c92cea4f4686a64edbc22a3de48566b579c8b6981cde93

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

#!/usr/bin/env ruby
# Copyright (C) 2004-2007 Kouichirou Eto, All rights reserved.

require "sgl/cocoa"

def setup
  $windowShadow = 0
  window 700, 700
  backgroundHSV 66, 100, 20
  $image = image("../media/image-heart.psd")
end

def display
  x, y = mouseX, mouseY
  colorHSV 0, 50, 100, y/5
  backgroundHSV 66, 100, 20, 300-x/2
  $image.rect(100, 100, 200, 200)
  $image.rect(0, 0, x, y)
  $image.rect(x, y, x+100, y+100)
end

mainloop

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sgl-1.0.0 examples/cocoa5-image.rb