Sha256: 85e97fd64f5dbb45c55eff4d4d9ff140560b69e46e7059c6501c0a94213993eb

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

require "sgl"

def setup
  window -200, -200, 200, 200
end

def display
  beginObj(POLYGON)
  color 100, 0, 0, 0
  vertex 60, 90
  color 0, 100, 0, 100
  vertex -120, 60
  color 0, 0, 100, 100
  vertex -90, -90
  color 100, 100, 0, 0
  vertex 120, -90
  endObj
end

mainloop 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sgl-0.4.0 examples/sample9.rb