Permalink
Browse files

Add Postscript example

  • Loading branch information...
1 parent 036efaa commit 5ffe33be01e1595cda0a24ef2772ac4c4fdceeb4 @glejeune committed Jul 1, 2012
Showing with 15 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. BIN examples/rgv/rgv.ps
  3. +12 −0 examples/rgv/test_rgv.rb
View
@@ -4,3 +4,6 @@
doc
pkg
test/output/
+.rake_tasks
+.rbx
+Gemfile.lock
View
Binary file not shown.
View
@@ -0,0 +1,12 @@
+#!/usr/bin/ruby
+
+$:.unshift( "../../lib" );
+require "graphviz"
+
+GraphViz.new(:g){ |g|
+ g[:center] = true
+ a = g.add_nodes("A", :shape => "rgv_box", :peripheries => 0)
+ b = g.add_nodes("Bonjour le monde\nComment va tu ?", :shape => "rgv_cloud", :peripheries => 0)
+ c = g.add_nodes("C", :shape => "rgv_flower", :peripheries => 0)
+ a << b << c
+}.save( :ps => "#{$0}.ps", :extlib => "rgv.ps" )

0 comments on commit 5ffe33b

Please sign in to comment.