ruby-processing.rb
# Nice block method to draw to a buffer.
# You can optionally pass it a width, a height, and a renderer.
# Takes care of starting and ending the draw for you.
Nice block method to draw to a buffer.
You can optionally pass it a width, a height, and a renderer.
Takes care of starting and ending the draw for you.
Nice block method to draw to a buffer . You can optionally pass it a width a height and a renderer . Takes care of starting and ending the draw for you .
def buffer(buf_width=width, buf_height=height, renderer=@render_mode)
      buf = create_graphics(buf_width, buf_height, renderer)
      buf.begin_draw
      yield buf
      buf.end_draw
      buf
    end
def buffer ( buf_width = width , buf_height = height , renderer = @render_mode ) buf = create_graphics ( buf_width , buf_height , renderer ) buf . begin_draw yield buf buf . end_draw buf end
Nice block method to draw to a buffer.
Nice block method to draw to a buffer .
buf_width
width
buf_height
height
renderer