sgl → simple generic library

Get Version

1.0.0

What is sgl?

‘sgl’ is a simgple generic library to create a program with graphics and sound.

Requirement

Windows

You can see Ruby/SDL on Windows install documnet.

Mac OS X

Installing

sudo gem install sgl

The basics

# test1.rb
require "sgl" 
window 100, 100
line 0, 0, 100, 100
wait
# test2.rb
require "sgl" 
window 100, 100
background 0
color 100
line 0, 0, 100, 100
wait
# test3.rb
require "sgl" 

def setup
  window 100, 100
end

def display
  line 0, 0, 100, 100
end

mainloop

Documents

Classes

We did some classes using sgl in some art schools. You can see some materials for the classes.

Repositry

The trunk repository is svn://rubyforge.org/var/svn/sgl/trunk for anonymous access.

License

Ruby License.

Contact

Comments are welcome. Send an email to Kouichirou Eto “eto at rubyforge dot org”.

1st July 2007