sgl

Get Version

0.3.1

→ simple generic library

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 to install these libraries.

Mac OS X

Installing

sudo gem install sgl

The basics

Save this progarm as test1.rb.
require "sgl" 
window 100, 100
line 0, 0, 100, 100
wait

Run the program with ruby test1.rb.

require "sgl" 

def setup
  window 100, 100
end

def display
  line 0, 0, 100, 100
end

mainloop

Pages

Classes

We did some classes using sgl in art schools. You’ll see the 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” .

19th June 2007