Method: CRT#draw
- Defined in:
- lib/HDLRuby/hdr_samples/ruby_program/sw_cpu_terminal.rb
#draw ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/HDLRuby/hdr_samples/ruby_program/sw_cpu_terminal.rb', line 36 def draw @rows.times do |y| pos_y = y * @px_height # puts "y=#{y} pos_y=#{pos_y}" off_y = y * @cols @cols.times do |x| pos_x = x * @px_width draw_rect(pos_x,pos_y, @px_width, @px_height,@buf[x+off_y]) end end end |