Sha256: ae39352c1ab45a38af57552606bd913f13fd360e4ece8f817bc57bdf1e4cfa3f
Contents?: true
Size: 595 Bytes
Versions: 3
Compression:
Stored size: 595 Bytes
Contents
# -*- coding: utf-8 -*- %w[xot rays reflex].product(%w[ext lib]).each do |paths| $: << File.expand_path( File.join File.dirname(__FILE__), *%w[.. .. ..], *paths) end require 'rubygems' require 'reflex' Reflex::Application.new :name => 'Visuals' do |app| Reflex::Window.new :title => app.name do |win| win.bounds = 100, 100, 600, 500 win.painter.background = 0.8 10.times do |i| Reflex::Visuals::String.new :name => 'hello' do |v| v.data = 'HELLO WORLD!' v.move_to *([i * 5] * 2) win.add v end end win.show end app.run end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reflexion-0.1.6 | examples/ruby/visuals.rb |
reflexion-0.1.5 | examples/ruby/visuals.rb |
reflexion-0.1.4 | examples/ruby/visuals.rb |