Post Reply 
Rotate Text Help!
10-31-2016, 05:50 AM (This post was last modified: 10-31-2016 03:18 PM by Spybot.)
Post: #1
Rotate Text Help!
Hello!

I'm trying to make a drawing in the Prime, but I realize I can't rotate texts!
I just wanted to rotate the "distance=?" text a couple of degrees, so it aligns with the green line (screen shot).

Here's my code:

EXPORT AboutESP()
BEGIN
RECT();
DIMGROB_P(G1,320,240);
RECT_P(G1,RGB(255,255,255));
LINE_P(G1,0,197,320,50,RGB(0,0,0));
LINE_P(G1,52,153,265,55,RGB(40,220,170));
LINE_P(G1,57,165,44,137,RGB(0,0,0));
LINE_P(G1,270,68,260,41,RGB(0,0,0));
RECT_P(G1,0,0,320,26,RGB(0,160,128));
TEXTOUT_P("Finding the distance between 2 points.",G1,25,2,4,RGB(255,255,255));

TEXTOUT_P("(x1,y1)",G1,55,175,2,RGB(0,0,0));
TEXTOUT_P("(x2,y2)",G1,270,79,2,RGB(0,0,0));
TEXTOUT_P("●",G1,56,162,3,RGB(255,0,0));
TEXTOUT_P("●",G1,268,65,3,RGB(255,0,0));
TEXTOUT_P("distance=?",G1,100,85,5,RGB(255,0,0));//this one I need to rotate.

TRIANGLE_P(G1,255,57,257,61,266,54,RGB(0,0,0));
TRIANGLE_P(G1,62,151,51,154,60,146,RGB(0,0,0));
BLIT_P(G0,G1);
FREEZE;
END;

I'll appreciate any help, Thank you.


Attached File(s) Thumbnail(s)
   

Spybot.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Rotate Text Help! - Spybot - 10-31-2016 05:50 AM
RE: Rotate Text Help! - eried - 10-31-2016, 05:33 PM
RE: Rotate Text Help! - Spybot - 11-01-2016, 06:43 AM
RE: Rotate Text Help! - Chasfield - 11-02-2016, 04:12 PM



User(s) browsing this thread: 1 Guest(s)