Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Graph paper function

Author
Message
Neuro Fuzzy
16
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 21st Nov 2009 01:38
It's kinda annoying when i'm graphing stuff using DBPro, and i can't tell where the origin is, so i made this function:


Play around with it if ya want. I might make a 3d version, but i don't really have a need for it, and I wanna finish up the project i made this function for

BTW, PPU is Pixels Per Unit. If PPU=50, there will be a line every 50 pixels. midx and midy are the origin, and subUnits is the number of itty bitty lines inbetween.

Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 2nd Dec 2009 20:49
I'm surprised nobody has replied, this is pretty cool. Thanks for sharing, I've already used the code a couple of times to help figure out where to position stuff.

TazMan47
14
Years of Service
User Offline
Joined: 10th Nov 2009
Location:
Posted: 3rd Dec 2009 00:42
Very good and useful function. Thanks.

Login to post a reply

Server time is: 2024-03-28 23:02:29
Your offset time is: 2024-03-28 23:02:29