Posts: 3,522
Threads: 189
Joined: Dec 2003
Quote:aff z!re, post souce b4 u demand it from others =(
I never demanded anything, I just figured it would be a nice change from Moneos date/converter/etc challenges.
JasonSG, I still cant run your code, could you compile and upload it?
www.fileanchor.com
Posts: 20
Threads: 6
Joined: Aug 2005
Here it is:
Download Painter2.zip
It contains 2 versions - one with a constant number of pixels per group (painter2) and one with a random number (painter3). I am still having trouble getting the pixels to move around the sides. I am also having trouble getting the pixels not to leave black spaces. I currently have each group be a single color, not a range of colors. This can be changed by changing the DATA statements.
Posts: 129
Threads: 15
Joined: Mar 2005
Here is my little painter:
Download rdcpaint.zip
Posts: 129
Threads: 15
Joined: Mar 2005
I added a mutation factor so that it generates a little different pattern:
Download rdcpaint2.zip
I goofed and kept the same file names, so copy this into a different folder.
Posts: 3,522
Threads: 189
Joined: Dec 2003
JasonSG, it's nice, but as it tries to mimic Painter, you cant help but compare.
The colors in your version doesent flow together as nice.. the black spots doesent look weird though, they actually fit.
rdc, I like both your entries.
Although, to be very nitpicky, your first one never stops, but I dont care, it's still nice.
The second is a little boring compared to the first, as there's so much black.
I was thinking of letting the competition run until the 15th, and announce the winner in QB Express, if Pete accepts the small article/thingy..
Sounds good to you people?
My painter.exe is not an entry, it's just an example, it doesent follow the rules of source..
Anywas, more entries people!
Posts: 129
Threads: 15
Joined: Mar 2005
Just so I am keeping with the rules, here is a fixed version of my first painter that stops when the screen is full (watch the title bar), and my official entry. Discard the others please.
Download rdcpainta.zip
Edit:
I noticed a little bug with the IsFull function. I forgot to exit the outer loop. Replace IsFull with the following code and it should run a bit faster.
Code:
'checks to see if screen is full
Function IsFull() As Integer
Dim As Integer i, j
Dim As Integer cnt
Dim ret As Integer = True
For i = 0 To sw - 1
For j = 0 To sh - 1
If bscreen(i, j) = 0 Then
ret = False
Exit For
End If
Next
If ret = False Then
Exit For
End If
Next
Return ret
End Function
Posts: 650
Threads: 26
Joined: Aug 2004
rdc, is that FB? i mean the whole thing.
quote="whitetiger0990"]whitetiger is.. WHITE POWER!!! [/quote]
Here
Posts: 129
Threads: 15
Joined: Mar 2005
Quote:rdc, is that FB? i mean the whole thing.
Yes, it is FB .14. Sorry, I should have mentioned that.
Posts: 650
Threads: 26
Joined: Aug 2004
the big tip-off was when i saw the mouse. and that it wouldn't run in qb. and other stuff...hmm...
quote="whitetiger0990"]whitetiger is.. WHITE POWER!!! [/quote]
Here
Posts: 3,522
Threads: 189
Joined: Dec 2003
Winner:
rdc
For the most interessting, and pleasing to look at paintings.
I don't have time to whip up a trophy or submit to QB Express, hope you can forgive me
EDIT: Ok, I found some time, submitted to QB Express