Master Game Community

Master Game Productions (MGP) presents Master Game Community (MGC). A forum for all your Game Maker needs.


    rgb, hsv

    Share
    avatar
    Anybloodyid
    Member

    Posts : 10
    Reputation : 0
    Join date : 2011-03-21
    Location : England

    rgb, hsv

    Post by Anybloodyid on Thu Apr 28, 2011 4:04 am

    Hi,
    I'm playing around with colors
    and I have the following in a draw event

    draw_set_color($0000FF)
    make_color_rgb(255,0,0)
    make_color_hsv(0,255,255)

    All three show a small RED rectangle, is this correct?
    I know the first two would show red but does hsv also return red and it's just its values that are different?

    Thanks
    avatar
    MasterOfKings
    MGC Master

    Posts : 67
    Reputation : 0
    Join date : 2010-04-01

    Re: rgb, hsv

    Post by MasterOfKings on Thu Apr 28, 2011 6:52 am

    All of those use different coloring system (well, the first uses RGB).

    In detail, the first is a hex (hexadecimal) code, It's mostly used for website stylesheets (CSS only supports hex - I think).

    The second is the good ol' RGB blend. This is how your GPU actually handles colors.

    HSV is yet another color system. I haven't dealt with it, actually. I just know what it is.

    All 3 can produce the same results, but they work differently.

    Does that answer your question? study

    -MoK

    avatar
    Anybloodyid
    Member

    Posts : 10
    Reputation : 0
    Join date : 2011-03-21
    Location : England

    Re: rgb, hsv

    Post by Anybloodyid on Thu Apr 28, 2011 7:32 am

    Thanks Mok

    That's answered the question and eplained the question.

    Sponsored content

    Re: rgb, hsv

    Post by Sponsored content


      Current date/time is Sat Oct 21, 2017 4:54 pm