Sha256: f6ab4fe91fb1360791baf547b6f32a53612b190ecdd69cce857316386d2d4667

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 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-1.0.0 examples/sample9.rb