to make an elipse with oval comand or anyway
Blitz3D Forums/Blitz3D Beginners Area/to make an elipse with oval comand or anyway Does it have to be coded? If not you could always make it in Photoshop then use RotateImage. If it does have to be coded, maybe make the oval, screenshot it to a bmp (I can't remember the command for that right now, maybe CaptureImage?) then load that image and use RotateImage.
fox95871
I need for a simulated planet orbit. Rotateimage does not work for what I need. Thanks.
I need for a simulated planet orbit. Rotateimage does not work for what I need. Thanks.
You'll probably need to use the pixel drawing commands, and experiment with the sine, cosine, tangent, etc, functions. You can find relevant math equations and other information at: http://en.wikipedia.org/wiki/Ellipse
Added
and changed
Just messin around though, just change the offsets and.. it will do... stuff lol.
XOffset=0 YOffset=45
and changed
Plot x+(Sin(XOffset+j)*XOffset),y+(Cos(YOffset+j)*YOffset)
xcentre=150 ycentre=150 xdiam=120 ydiam=80 XOffset=0 YOffset=45 For j=0 To 359 x=xdiam*Sin(j)+xcentre y=ydiam*Cos(j)+ycentre Plot x+(Sin(XOffset+j)*XOffset),y+(Cos(YOffset+j)*YOffset) Next WaitKey
Just messin around though, just change the offsets and.. it will do... stuff lol.
Ohh! it seems to be as easy (when you know how to do lol) but I didnt not to do and I was trying without to be succesfull.
Only two variables added make it has sense O_O lol
Than you very much GIA_Green_Fire_ . I will adapte you idea for to do a irregular elipse into my code :):):)
Only two variables added make it has sense O_O lol
Than you very much GIA_Green_Fire_ . I will adapte you idea for to do a irregular elipse into my code :):):)