HP Forums
circle filled - 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: circle filled (/thread-1669.html)



circle filled - fabila - 06-20-2014 12:56 AM

Is there any command to draw a circle filled with color?
something like fillpolly
thanks


RE: circle filled - cyrille de brébisson - 06-20-2014 05:16 AM

Hello,

no, unfortunately,

even internally, filled circles are done using a fillpoly...

cyrille


RE: circle filled - fabila - 06-20-2014 10:58 AM

Thank cyrille

using fillpoly has given me an idea

Could it be something like this?


Code:
EXPORT fillcircle()
BEGIN
    LOCAL COORD:={};
    
    dimgrob_p(G1, 200,200,RGB(255,255,255,128));
    
    FOR A FROM 1 TO 90 DO
        COORD(A,1):=99+99*COS(4*A);
        COORD(A,2):=99+99*sin(4*A);
    end;
    
    FILLPOLY_P(G1,COORD,#FF, 128);
    RECT();
    BLIT_P(G1);
    
    WAIT(-1);
END;



RE: circle filled - Kevin Ouellet - 06-22-2014 02:49 PM

There is also this program from MacBernick from a few months ago: http://www.omnimaga.org/hp-prime/fast-filled-circles-routine/?action=dlattach;attach=16703


http://www.omnimaga.org/hp-prime/fast-filled-circles-routine/msg373410/#msg373410

I don't know how to get rid of the Select program prompt at the beginning, though.


The program looks somewhat fast and if you want you can modify it so that the circles are translucent.



I'll try your program as well.