1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. NOTICE: We will be applying a Xenforo update on Tuesday 25th of February. This means that from approximately 10:00 to 14:00 BST the forums will be offline (or possibly longer). Sorry for the inconvenience! Official Announcement here.

Discussion Documentation suggestion

Discussion in 'Off Topic' started by chaslinux, Jan 23, 2020.

  1. chaslinux

    chaslinux Member

    Joined:
    Jul 7, 2018
    Posts:
    18
    Can I recommend adding text similar to "GameMaker uses BGR instead of RGB)" to the color documentation here:

    https://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/drawing/colour/index.html

    This came up when I was editing a sprite in GameMaker's image editor, which shows the image in RGB hex. For example #FF9E0D is a nice light orange in any image editor including GM's. But if I draw_set_color($FF9E0D) the color is blue (the FF and 0D are flipped).

    It might also be worth showing in an example on draw_set_color() here:

    https://docs.yoyogames.com/source/d...wing/colour and blending/draw_set_colour.html

    Thanks to great people (yyg) in discord for their help.
     
  2. Mercerenies

    Mercerenies Member

    Joined:
    Jun 21, 2016
    Posts:
    134
    From the page you linked. I'm not sure how much more cut and dry it can get. It is definitely weird that the image editor uses the opposite convention though; I'd never thought about that before, and it's quite unintuitive at that. (Not that BGR in and of itself isn't unintuitive :p)
     
  3. chaslinux

    chaslinux Member

    Joined:
    Jul 7, 2018
    Posts:
    18
    I'm blind... glossed right over it. Though I still think it would be worth an example on the draw_set_color() page. My bad, looking at a screen way too long!
     

Share This Page