Lost Password?

Go Back   CodeCall Programming Forum > Software Development > General Programming

Vote on your favorite hash algorithm here!

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-21-2008, 01:28 AM
bentoh bentoh is offline
Newbie
 
Join Date: Jan 2008
Posts: 4
Credits: 0
Rep Power: 0
bentoh is on a distinguished road
Default Generating random background...

is it possible to write a program that randomly generate a background like this???



the background consists of 2 shapes, with different contrast and size...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-21-2008, 12:15 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 2,535
Last Blog:
wxWidgets is NOT code ...
Credits: 919
Rep Power: 28
WingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the rough
Default

This looks like a typical result of many particle physics programs with gravity. I'm sure it's possible by randomly "dropping" objects into the top of the circle and letting them settle.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-21-2008, 08:39 PM
bentoh bentoh is offline
Newbie
 
Join Date: Jan 2008
Posts: 4
Credits: 0
Rep Power: 0
bentoh is on a distinguished road
Default

Quote:
Originally Posted by WingedPanther View Post
This looks like a typical result of many particle physics programs with gravity. I'm sure it's possible by randomly "dropping" objects into the top of the circle and letting them settle.
The "dropping" idea is good but the particle physics stuff uses balls ... and mine with different shape...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-22-2008, 10:56 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 2,535
Last Blog:
wxWidgets is NOT code ...
Credits: 919
Rep Power: 28
WingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the roughWingedPanther is a jewel in the rough
Default

I've seen particle physics that use squares, triangles, and other shapes. The essence of it is to be able to detect collisions between objects and prevent overlap.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-24-2008, 01:12 AM
bentoh bentoh is offline
Newbie
 
Join Date: Jan 2008
Posts: 4
Credits: 0
Rep Power: 0
bentoh is on a distinguished road
Default

to detect collision is still ok but to make them jam packed is very hard since every shape is "bounded" by a rectangle...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 01-24-2008, 07:47 AM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Credits: 112
Rep Power: 16
Lop will become famous soon enough
Default

Why not first, make the background a solid color. Then drop the two shapes in at random where no other shap exists. They will not have to be bounded because the background color will create the remaining shapes.
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encryption using Random!? TcM Programming Theory 14 01-07-2008 10:48 AM
random file help nishbur Visual Basic Programming 1 11-06-2007 04:13 AM
Generating Random Numbers with PHP Paradine PHP Tutorials 4 08-27-2007 07:09 PM
Return random numbers without duplicates Paradine PHP Tutorials 0 08-26-2007 02:07 PM
Code:PHP Random Functions John PHP Tutorials 2 12-03-2006 10:04 AM


All times are GMT -5. The time now is 10:55 PM.

Contest Stats

Xav ........ 1357.94
MeTh0Dz|Reb0rn ........ 1077.71
WingedPanther ........ 919.18
marwex89 ........ 906.86
morefood2001 ........ 900.18
John ........ 890.77
Brandon W ........ 770.65
chili5 ........ 312.39
Steve.L ........ 264.99
dcs ........ 234.34

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 83%

Ads