sgl-cocoa → sgl with Ruby/Cocoa

Get Version

1.0.0

What

‘sgl-cocoa’ is a cocoa version of sgl. You can use sgl functions with Ruby/Cocoa.

Requirement

You can use sgl-cocoa only on Mac OS X.

The basics

# test1.rb
require "sgl/cocoa" 

def setup
  window 100, 100
end

def display
  line 0, 0, 100, 100
end

mainloop

Run the program with ruby test1.rb.

30th June 2007