vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Image Creation! (https://vborg.vbsupport.ru/showthread.php?t=111195)

pyro.699 03-23-2006 07:06 PM

Image Creation!
 
1 Attachment(s)
Ok,
for some reason, my math teacher needed a script made that can handle trigonomerty functions (sin, cos, and tan). Now, ive decided to extend my php knowage and try it out... i have all of the math done, but now, i need to create a image making script to fit the triangle, and, i know absoultly nothing about the 'image' function, and thought someone could help me out:

1) ill be using $_GET['opposite'], $_GET['adjacent'], and $_GET['hypotenuse']
2) i would like it to have the actchual number identifications on the side (look at atachment)
3) it should resize to 250x250 px, with a 10px border
background: black (0, 0, 0)
triangle: white(255, 255, 255)
4) i will be calling the image threw a php file (duh, lol ^^;) so it shoudl be able to handle aquard numbers
Quote:

Side a: 483
Side b: 295
Side c: 565.96289631
(angle) A: 58.5848315151
Sine: 0.853412835274
Cosine: 0.521235582621
Tangent: 1.63728813559
5) i would like it to look something like the example

I really need this! thanks

~Cody Woolaver

(If u cant read the hypotenuse it says 'Length of C')


All times are GMT. The time now is 03:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00999 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete