Sha256: f3529f1892c25edb26388c466f19e16fa9f7b7a73e85e94744a9250d834636b0

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

h1. sgl-cocoa → sgl with Ruby/Cocoa

h2. What

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

h2. Requirement

You can use this only on Mac OS X.

h3. Mac OS X

* Mac OS X 10.3 or later
* ruby 1.8.5 or later
* RubyCocoa 0.4.1 or later

h2. The basics

Save this progarm as @test1.rb@.
<pre syntax="ruby">
require "sgl/cocoa"

def setup
  window 100, 100
end

def display
  line 0, 0, 100, 100
end

mainloop
</pre>

Run the program with @ruby test1.rb@.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sgl-0.4.0 website/cocoa.txt