Results 1 to 11 of 11

Thread: code to generate ugly images

  1. #1

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
    Attached Images Attached Images  
    Last edited by kedaman; Feb 28th, 2001 at 04:37 PM.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    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....................

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    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...

  4. #4

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    ok i guess it's too hard

    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
    Attached Images Attached Images  
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    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 ?

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  6. #6
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    This one fades a form...
    Code:
    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 ...

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  7. #7

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  8. #8
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Hmmm...................Using Bitblt, DC, and CreateBitMap with SRCCOPY, SRCINVERT, SRCOR and SRCAND to get the reversing of the colors and the rotation.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  9. #9
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Axiom is also my handle in all the computer games I play (online and offline), well either that or HarryTheBastard
    Harry.

    "From one thing, know ten thousand things."

  10. #10

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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`?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  11. #11
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Since I'm not likely to hit 4096 posts any time soon, I don't think it will matter
    Harry.

    "From one thing, know ten thousand things."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width