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 / [DarkBASIC Professional] Ah. Ah. Ah code snippet that ruined my desktop. Until I refreshed the screen.

Author
Message
aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 31st Oct 2007 22:57


This isn't a sig. It's me disguised a sig. Can you get me out?
Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 2nd Nov 2007 18:05
Funny effect. But you shouldn't use this trigonometric angle-algorithm but rather calculate the distance of each point within the draw-range to the center, that should be a bit faster... and apart from that use lock pixels or memblocks.

Changed it a bit.. really just a bit.



Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 2nd Nov 2007 18:26
What's the array for? Looks cool anyway.

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 5th Nov 2007 17:59
Zotoaster - Good point. It isn't called again in the program, so it hasn't got any real use (apart from slowing the program down tremendously)

Your signature has been erased by a hyper-intelligent pan-dimensional being (a mod)
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 26th Nov 2007 01:25
quite cool.

More DBC-friendly version though:



what does lock pixels do? I got rid of it but I'm not sure what it actually got rid of...

MonoCoder
18
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 26th Nov 2007 20:15
Behold, a tunnel carved in thy name.




@db: locking pixels speeds up 2d drawing.

EBA; FUI; Mario Land Ripoff.
Every time you post a joke in the form of code, mace yourself.
Zombie 20
17
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 29th Nov 2007 15:19
uh..woo I suck at trig cause I haven't used it a lot, but its very fun.




Coffee coffee coffee coffee coffee coffee cappacino, JAVA!

Login to post a reply

Server time is: 2024-11-22 13:06:50
Your offset time is: 2024-11-22 13:06:50