color

  1. T

    Legacy GM Creating Hex color codes - concatenating a number and "$"?

    Ok so my issue is that I am trying to generate my own hex values to put into a draw_sprite_ext function. Now generating them is all good but the issue is actually getting them into the function. The main issue is how when putting a hex value in the draw_sprite_ext function you need to have a...
  2. P

    Ordering of Instance_Create

    I am currently trying to make a drawing game and i am still fairly new to game maker. I have made it so that when the left mouse button is held, an new instance is created drawing a line.However, when working with other colours, the layering is in the order of the the code. E.g if...
  3. Jared Johnson

    Color math help please!

    I'm using GM8. I need to figure out what color to blend with while drawing a colorless sprite to match the same colorless sprite drawn with one color to a surface, and then the surface is blended with another color. I have to do it this way, I cannot draw the shape to the surface already...
  4. sercan

    Android sprite_create_from_surface problem

    var surf; surf = application_surface; surface_set_target(surf); spr_test = sprite_create_from_surface(surf,0,0,480,800,false,false,0,0); sprite_save(spr_test,0,path); surface_reset_target(); this is the code i use to get a sprite from a created surface. In created sprite, the color pixels which...
  5. S

    Legacy GM Custom Font Help

    I created a sprites for the numbers 0-9 and made a font out of the using font_add_sprite. All is well except my sprite numbers were in color and GM makes the numbers just black. How do I fix this?
  6. gitwalrus

    Question - IDE Color palette in image editor.

    In the color panel in the new image editor I can't get the color palette import to work. When I try to get the color palette from my sprite nothing happens. Is there supposed to be a change? Thanks, Philip
  7. Narayan Lewandowski

    GML [SOLVED] gml blendmode that only effects hue?

    I don't even know if its possible with blendmodes (tbh I don't really get the gml blendmodes), but I need to basically need to set the hue of everything drawn on screen to a certain color. I though i could put gpu_set_blendmode_ext(something, something); draw_clear(col)...
  8. Misu

    Shaders Shader not picking up color from another sampler

    I am working on a very complex shader as an experiment with 3D shadering. At this point, the shader I wrote came out excellent base on my calculations. However, it is not working. I tried testing out each algorithm in the fragment shader to see which line is working or not, and I reach my...
  9. Wuzzems

    Legacy GM [SOLVED] Random Background Blend

    backgroundcolor[0] = background_blend[0] = c_white; backgroundcolor[1] = background_blend[0] = c_red; backgroundcolor[2] = background_blend[0] = c_orange; backgroundcolor[3] = background_blend[0] = c_yellow; backgroundcolor[4] = background_blend[0] = c_green; backgroundcolor[5] =...
  10. R

    Windows Changing colors for a character creation screen(HSV) - Keeping the outline untouched[SOLVED]

    I want to change the color of an image with some programmed bars where you can change the HSV. I don't want the outline to be affected. Is there a way where the grey outline can be "untouched" in this process? Somthing like take this image change the HSV but keep this color untouched. I think...
  11. S

    GML Using RGB values in sprites to apply attributes?

    Hello everyone! I don't have any code right now, but i'm curious if it's possible to do this with gamemaker. If any of you played the original total war games you'd maybe know about how regions are made? If not it's fine. I'm wondering if i can give RGB values attributes. (Examples below) R...
  12. W

    Legacy GM Color pallet always out of order

    Hi, I have been using Game Maker Studio for years now and my color pallet always becomes disorganized after opening the image editor second time. For example, the first time I open the editor, the pallet always looks like this: However, when I open the editor a second time, it will look...
  13. RhyminGarFunkle

    Question - IDE Replace transparent color on same layer in image editor

    Is there any functionality similar to the "color mode: blend/replace" dialog from the image editor in GMS1? It doesn't appear that there is any easy way to, say, replace a couple opaque pixels with semi-transparent ones, or replace semi-transparent pixels of one color with another. If you try to...
  14. L

    Windows Help with Blending Mode

    I need help with creating a vignette on my gui layer. I have a sprite and it starts off white and goes to black. I cannot seem to make the black transparent. help?
  15. B

    Question - Code Why are hex colours #BBGGRR instead of #RRGGBB?

    Just curious as to why GMS uses hexadecimal colours in the format of Blue/Green/Red rather than Red/Green/Blue like most other programs and languages use? Its just a bit confusing to me and to other's I would imagine.
  16. N

    Asset - Project Powerful Dialogue Engine (Video Included)

    String Bean is an original, powerful, flexible and easy to use Text Engine coded entirely in GML. Marketplace for GM 2: https://marketplace.yoyogames.com/assets/4956/string-bean Marketplace for GM:S: https://marketplace.yoyogames.com/assets/4974/string-bean-v2 The core of String Bean consists of...
  17. V

    What exactly does "Color Only" do for the paint bucket tool?

    I know that tolerance changes how exact the fill tool will affect pixels but what exactly does color only do? i cant find a description of it anywere
  18. zendraw

    Legacy GM Q:Setting colour in a string

    Hi, i was wondering is it possible in gms to set colour within a string, somthing like this 'hello [col=red]world[col=white], how are you?'. so basically only the word 'world' is red. somthing like what you can do in the forum. setting the color with a function doesnt work for me cus im...
  19. E

    Shaders [SOLVED] Making only pixels around an object coloured

    Hi all, I have been trying to recreate the following illustration but I only managed to get the grayscale to work. Here is what i am trying to achieve: First - my background and objects in game are turned into grayscale by a shader in real time Second - only pixels around my player are...
  20. Misu

    The Unofficial Art Gallery

    This thread is for all of you to show off or share your artistic side with everybody in the community. You can post paintings, sketches, digital artworks, anything artsy and creative made only by you of course. Let the community express themselves with their art side! <link broken>
Top