Master Game Community

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Master Game Community

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


2 posters

    rgb, hsv

    Anybloodyid
    Anybloodyid
    Member


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

    rgb, hsv Empty rgb, hsv

    Post by Anybloodyid 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
    MasterOfKings
    MasterOfKings
    MGC Master


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

    rgb, hsv Empty Re: rgb, hsv

    Post by MasterOfKings 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
    Anybloodyid
    Anybloodyid
    Member


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

    rgb, hsv Empty Re: rgb, hsv

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

    Thanks Mok

    That's answered the question and eplained the question.

    Sponsored content


    rgb, hsv Empty Re: rgb, hsv

    Post by Sponsored content


      Current date/time is Fri Apr 26, 2024 11:13 am