![]() |
[Request] drawing a dinamic line - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: [Request] drawing a dinamic line (/thread-1815.html) |
[Request] drawing a dinamic line - fabila - 07-10-2014 06:03 PM I'm trying to draw a diameter of a circle, and rotate by dragging your finger on the screen, How to do a single line it looks? I tried but that rect(G2) after blit(G2) but erases the background Code:
RE: [Request] drawing a dinamic line - eried - 07-10-2014 07:41 PM For your example, fastest way is just redrawing the last line over with the background color. RE: [Request] drawing a dinamic line - fabila - 07-10-2014 07:58 PM (07-10-2014 07:41 PM)eried Wrote: For your example, fastest way is just redrawing the last line over with the background color.the problem is that if redraw using blit (G3) in the last line, the screen flickers while dragging your finger with a very ugly effect. RE: [Request] drawing a dinamic line - eried - 07-10-2014 08:21 PM Well, you can use G0 and/or a condition to avoid unnecessary redraws: Code: export Mes() RE: [Request] drawing a dinamic line - fabila - 07-10-2014 09:23 PM thank you very much for the code, just what I needed Habia intentado el volver a dibujar la recta de color del fondo pero me faltaba el condicional muchas gracias. |