Changeset 2023 for libcaca/trunk/ruby/README
- Timestamp:
- Nov 18, 2007, 11:15:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/ruby/README
r2021 r2023 137 137 138 138 \code 139 $ ruby -e 'puts Cucul::Canvas.new(6,3).draw_thin_polyline([[0,0], [ 2,0],139 $ ruby -e 'puts Cucul::Canvas.new(6,3).draw_thin_polyline([[0,0], [0,2], 140 140 [5,2],[0,0]]).export_memory("irc")' 141 141 -. … … 162 162 \code 163 163 require 'caca' 164 d = Caca::Display.new(Cucul::Canvas.new(20,10)) 164 c = Cucul::Canvas.new(20,10) 165 c.put_str(2, 3, "plop!") 166 c.draw_thin_polyline([[0,0], [0,2], [5,2], [0,0]]) 167 d = Caca::Display.new(c) 165 168 d.title = "Test !" 169 d.refresh 166 170 while((e = d.get_event(Caca::Event, -1)) && 167 171 ! e.kind_of?(Caca::Event::Quit))
Note: See TracChangeset
for help on using the changeset viewer.