Degrees Graph Plotter - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Programs (https://staging.qb64phoenix.com/forumdisplay.php?fid=7) +---- Thread: Degrees Graph Plotter (/showthread.php?tid=602) |
Degrees Graph Plotter - SierraKen - 07-11-2022 I put this together in just 1 1/2 hours tonight without knowing any equations, just some knowledge about the Circle command's radians that I've used before. This doesn't make circles, except for the line it makes using circles. What it does is make a graph of the degrees you punch in. For example, if you punch in 90, it will make a thick line going straight up. If you punch in 180 it will make a thick line going to the left, and so on. It also writes out the degrees next to the line. Plus I added printer support so you can print out the picture if you wish to on your printer. When it uses the printer, I made it so the background is white and the graphics are black and the thick line is blue. I've wanted to make this since I started programming in BASIC in the 1980's. Amazing I figured it out all by myself this time. Feel free to use any of this in your own code of course. I might try some artwork with it sometime. Everything in the app is self-explanatory. Enjoy. picture sharing Code: (Select All) 'Degrees Graph Plotter by SierraKen RE: Degrees Graph Plotter - bplus - 07-11-2022 Mouse Angle in a Basic Screen from center in Degrees: Code: (Select All) Screen _NewImage(600, 600, 32) RE: Degrees Graph Plotter - SierraKen - 07-11-2022 Awesome B+! But I noticed your angles go clockwise, mine go counter-clockwise because that's the geometric way. Neat idea though. RE: Degrees Graph Plotter - bplus - 07-11-2022 Yeah that is the way Sin and Cos go as you go from 0 upwards in degrees or Radians. Not like you learned in math but you need to know that to do Basic graphics with Basic Trig functions. From the start on printouts Y, vertical measure and locating, advances downward not upward. Someone tried to fix that with Circle parameters beyond the radius, but made a mess with COS and SIN going the opposite direction. RE: Degrees Graph Plotter - SierraKen - 07-11-2022 Wow that's wild. I don't know much about all that so I'll just keep my app here as it is. |