Sha256: f045616996388cc7fedb819c7b25a145d62485f725a53c1bdc284754840fade3

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

require "sgl"

def setup
  window -200, -200, 200, 200
  background 100
end

def display
  x = mouseX
  y = mouseY

  push
  color 100, 0, 0
  translate x, y, 0
  rotateX x
  rotateY y
  scale 2
  rect -5, -5, 5, 5
  pop

  push
  color 100, 0, 0
  translate x, y, 0
  rotateX x
  rotateY y
  scale 2
  rect 5, 5, 10, 10
  pop
end

mainloop

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sgl-1.0.0 examples/sample16.rb