12-27-2013, 08:18 PM
Hello!
As part of my learning in programming HP Prime, I'm writing some programs that draw simple or complex graphics.
I have several, I'll be publishing in the next few hours. This is the first one:
[/code]
As part of my learning in programming HP Prime, I'm writing some programs that draw simple or complex graphics.
I have several, I'll be publishing in the next few hours. This is the first one:
Code:
EXPORT grafico1()
BEGIN
//Valores iniciales
local ZZ,XX,YY, angulo;
//Manejo el tema del formato de los angulos
angulo := HAngle;
HAngle := 0; //Modo = grados
DIMGROB_P(G1,320,240);
BLIT_P(G0,G1);
FOR ZZ FROM 0 TO 10 STEP .15 DO
FOR XX FROM 0 TO 10 STEP .08 DO
YY := -15*cos(3*((XX-5)*(XX−5)+(ZZ−5)*(ZZ−5))^0.5)/2+50;
PIXON_P(XX*25+20+ZZ*3,YY+ZZ*12,#0+IP(ZZ*5000));
END;
END;
FREEZE;
HAngle := angulo;
END;
[/code]