search for: black_pen

Displaying 4 results from an estimated 4 matches for "black_pen".

Did you mean: back_len
2008 Jan 19
5
No joy from Wx::App.dispatch, Wx::App.yield...
...indow, buffer) #No effect. #self.dispatch #No effect. #self.dispatch while self.pending #No effect. #self.yield end t.start(33) end def animate(window, buffer) green_pen = Wx::Pen.new(Wx::Colour.new(128, 255, 128), 3) black_pen = Wx::Pen.new(Wx::Colour.new(0, 0, 0), 0) buffer.draw do |surface| #Clear screen. surface.pen = black_pen surface.brush = Wx::BLACK_BRUSH surface.draw_rectangle(0, 0, 300, 300) #Draw lines. surface.pen = green_pen surface.pen.cap = Wx::C...
2007 Dec 30
4
Drawing thread not getting enough time from scheduler?
Need some assistance with animation again... When I run the drawing code in a separate thread, it''s slow as heck. I think it may be because the drawing thread isn''t getting enough time from the thread scheduler. I was able to reproduce the problem in my little sample program simply by increasing the number of lines it draws per update. I''m lucky to get one frame
2007 Mar 06
0
[876] trunk/wxruby2/samples/printing/printing.rb: Fix a crasher if scale = 0; fix variable rename
...(w/page_width) </span><span class="lines">@@ -391,8 +390,8 @@ </span><span class="cx"> dc.draw_text(text, x_pos.to_i, top_margin_logical) </span><span class="cx"> </span><span class="cx"> dc.set_pen(Wx::BLACK_PEN) </span><del>- dc.draw_line( left_margin_logical, (top_margin_logical+y_extent).to_i, - right_margin_logical, (top_margin_logical+yExtent).to_i ) </del><ins>+ dc.draw_line( left_margin_logical, (top_margin_logical + y_extent).to_i, + r...
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...mm L shape </span><del>- logUnitsFactor = (ppiPrinterX/(scale*25.4)) - logUnits = (50*logUnitsFactor) </del><ins>+ log_units_factor = (ppi_printer_x/(scale*25.4)) + log_units = (50*log_units_factor) </ins><span class="cx"> dc.set_pen(Wx::BLACK_PEN) </span><del>- dc.draw_line(50, 250, (50.0 + logUnits).to_i, 250) - dc.draw_line(50, 250, 50, (250.0 + logUnits).to_i) </del><ins>+ dc.draw_line(50, 250, (50.0 + log_units).to_i, 250) + dc.draw_line(50, 250, 50, (250.0 + log_units).to_i) </ins><span clas...