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 / circle generator

Author
Message
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 8th Apr 2004 22:58
i made this ages ago but i want to see if it's any good, i havent sorted out the bg colours yet

tell me what u think

Hello, I'll do this later...
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 11th Apr 2004 16:28
Ummm, it draws a circle. Wow. You do realise there is an INBUILT command to do just that, and its faster too.

You wanna know what i think? Personally, i think its stupid. But thats just me. I don't wanna start a flame war, but i'm just wondering why you posted this. Why did you post this?

Maybe you really are from "The Ministry of Insania"

Current Project: Interactive DBPro Showcase Example
Project Status: Game Engine 90%
http://www.w3th.tk <-- Soon to have some content
Tapewormz
21
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 12th Apr 2004 01:54
It can be used in other applications. Not just drawing a circle, so I don't think it's stupid or a waste of time. Someone's going to find a use for this.

Quote: " Timesoft - Your wife is death. How? NO idea.
But it is murder. REVENGE!!!!!!!!!"

Hands down the funniest synopsis for a game ever. All your base are belong to us!
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 12th Apr 2004 04:12
Here is a function that I used in an image editor, so like Mr Flibble said completly useless and stupid



And a line drawing function.



you ain't the cops
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 12th Apr 2004 18:33
yeah it isnt that useless, and building refined my coding skills so it was useful to me

in addition, its possible to make it make a spiral by changing the code slightly, but im not going to make that one unless ive got time on my hands

N30F15H
Co-CEO of Pulse Productions
www.pulseproductions.tk
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 16th Apr 2004 21:01
as this is a 'stupid thread' I'll post something useless to





Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb
ifman1
20
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 17th Apr 2004 03:48
N30F15H
your line:
Quote: " for n=1 to 500 "

is a bit redundant. n = 1 to 360 would generate a full circle, anything more than 360 wastes some processing power, however miniscule, but if you're going to use this to generate ripples in water or something, then you don't want to waste any. By going to 500 you overlap 140 of your own dots.

DBPro's made out of PEOPLE.... PEOPLE.......!!!!!
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 17th Apr 2004 05:48
ur rong because if u change some of the settings it needs more dots e.g spirals

BTW i did update the thing to a spiral generator but i cant be bothered to upload it

Atreides
20
Years of Service
User Offline
Joined: 11th Oct 2003
Location: Switzerland (but NOT on a mountain !)
Posted: 17th Apr 2004 19:04
Another useless thing ^^



The sleeper must awaken !
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Apr 2004 19:54
slight optimization.

change as ifman1 said, and also get rid of the V variable, its not needed.




new code


It's not completely useless, to him anyway. Mabye he didn't need to post it. But he's learning ways to use sin/cos, which is good.

"eureka" - Archimedes
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 21st Apr 2004 23:26
You're right Phaelax



Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb
ifman1
20
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 22nd Apr 2004 02:12
um... heh... I s'pose if you're doing a spiral you would need more than 360 dots, SINCE IT'S NOT A FRICK'N CIRCLE ANYMORE!!!! Jeez. But since your original post was a circle generator, and your original code just put new dots on top of old ones, it was redundant. What I would be impressed with is if you could fix the code so that all the extra dots fill in the gaps of larger circles...that would be cool. It's actually simple... but since no really seemed to care about the original circle, and dbpro has a built in function... oh, hey... why?

DBPro's made out of PEOPLE.... PEOPLE.......!!!!!
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 22nd Apr 2004 02:47
true true


Login to post a reply

Server time is: 2024-05-12 19:10:27
Your offset time is: 2024-05-12 19:10:27