PDA

Click to See Complete Forum and Search --> : code to generate ugly images


kedaman
Feb 28th, 2001, 02:03 PM
Explain to me how you could do this with code? Something in the direction will be a point ;)
don't go download that attachment, it's the wrong one, download this (http://forums.vb-world.net/attachment.php?s=&attachmentid=580)

sebs
Feb 28th, 2001, 02:16 PM
for sure their is a function(or sub) repeated a certain
number of times, that each time it's called the pass
value or the opposite of the previous passed value.

The function would random location to put points
but all around the same spot. Cuz all the images are
not the same but similar.

i don't know....................

Fox
Feb 28th, 2001, 02:36 PM
I think it really calculates the color, something exponential (like x^x or x^y or sin(x)*y^x ;)).

Maybe he's using palettes to get the weird color combinations...

kedaman
Feb 28th, 2001, 03:24 PM
nevermind that, the rnd thing just made things worse. Look at this one instead, and you might have easier to figure out what i did.

Fox get a point for "using palettes to get weird color combinations"
sebs get's a point about that random thing, i removed it now since it's disturbing your concentration :)

alex_read
Mar 1st, 2001, 09:21 AM
let me guess - something to do with calling the RGB colors ?

I know its very vague, but do I get a point ?
Originally posted by kedaman
Something in the direction will be a point ;)

What does Axiom mean kedaman ?

alex_read
Mar 1st, 2001, 09:26 AM
This one fades a form...

Dim intY As Integer

Form1.Scale (0, 0)-(500, 500)

For intY = 0 To 500
Form1.Line (0, intY)-(500, intY), RGB(0, 0, CInt((intY / 500) * 255))
Next


So I guess....
You created a triangle shape, worked out the centre of it, then used something like the above, rather than changing the color from top to bottom, to go from the inside to the outside of the shape.

I haven't learnt DirectX, so not too sure how you got the multi triangle bit ...

kedaman
Mar 1st, 2001, 02:13 PM
Has nothing to do with DX alex, it was rendered on the screen dc. No RGB crap, it's done with a palette. no triangles were drawn either. However nice fading, 1 point for that :)
Axiom definition (http://www.geocities.com/Athens/Parthenon/1802/N_axiom.html)

Technocrat
Mar 1st, 2001, 04:04 PM
Hmmm...................Using Bitblt, DC, and CreateBitMap with SRCCOPY, SRCINVERT, SRCOR and SRCAND to get the reversing of the colors and the rotation.

HarryW
Mar 1st, 2001, 04:18 PM
Axiom is also my handle in all the computer games I play (online and offline), well either that or HarryTheBastard ;)

kedaman
Mar 1st, 2001, 06:41 PM
the screen and an offscreen device context +several bitmaps are involved, bitblt is only used with source copy. No color reversing or rotation was needed, 1 point to you Technocrat.
Yeah well Harry, i didn't know until i changed my title, it's okay that i keep it`?

HarryW
Mar 1st, 2001, 06:50 PM
Since I'm not likely to hit 4096 posts any time soon, I don't think it will matter :)