color

  1. Erik Leppen

    GML Drawing a vertex buffer in different colors

    Hi all, I have another question about vertex buffers (that I couldn't find in the manual). I have a vertex format using position (xy) and color (ca) and I want to use it to draw a line segment (as a minimal example): vertex_format_begin(); vertex_format_add_position()...
  2. Slothagami

    GMS 2 Color coding strings at runtime

    I'm making my own version of code writer, just for fun, and I am want to make the text color coded for the languages I intend to use it for (html, css, javascript, etc...). So the problem is that I need to change part of a strings color based on context, (check if it's in brackets and things)...
  3. T

    GMS 2.3+ Colors are wrong when importing an image

    Hi there, I've been encountering a problem with the image editor in GMS2. Whenever I import an image, the colors are always slightly off from the original. Even when I put in the exact hex code of the color, it's still wrong. Is there a way I can fix this? Here's an example. Original (its fuzzy...
  4. S

    GMS 2.3+ Bug, some folder colors are not saved

    I'm not sure how to reproduce this. But i have my project, and used to new features to color code some folders. Like so. But everytime i save and open the project again, it ends up like so?? For whatever reason, some folders...
  5. Andymakeer

    GMS 2 Surface blend turns overlapped text black

    Hey guys! So I was playing with surfaces and blend_modes and found out its possible to customize the blending results. I was trying to draw text to an alpha-cleared surface, but the result was kinda ugly. Then, after studying a little, i was able to "ignore" the surface color and alpha blend...
  6. XenonMax

    GML Save page and color in 1 variable

    Hello, I want to program something like a Launchpad light show painter(this thing with buttons/music/light). Now I try to save the current buttoncolor in a variable on the right page! Like --> ( If I have page 2 change color(or image_index) to red(or 2) ) (I can't create 100000 variables for...
  7. GGJuanPabon

    GML Create colours from their hexadecimal

    I'm new to Gamemaker, and now that I find the color customization theme, I see something I don't really understand. There is some reason why a hexadecimal color, known with structure (Red, Green, Blue), is asked by the game maker in reverse. (Blue Green, Red). For example, a Red color, which...
  8. NeZvers

    SpritePalettizer - free html5 tool for color changing pixel art assets

    SpritePalettizer is a free html5 tool and 2$ for a desktop app (Win/ Linux/ Mac). Get it https://nezvers.itch.io/spritepalettizer. I've included GameMaker:studio2 shader code example and example project (provided by Xordev on twitter) on how to use color swapping with color set textures (not...
  9. A

    SOLVED How can i change background colour (with codes)

    I want to make a rainbow effect on the background. How can I? edit:Okay guys i did it create event: global.TimeToGoUp = true global.Bgtimer = 0 step event: if(global.TimeToGoUp = true and global.Bgtimer = 500){ global.TimeToGoUp = false } else if (global.TimeToGoUp = false and...
  10. D

    Tint colour of sprite

    I'm looking to slightly tint the colors of a sprite. Meaning that white and black stay the same but other colours change so the overall saturation stays the same, similar to the 'color' blend mode in photoshop. The intention is to change this multiple times, so creating different versions of the...
  11. T

    Problem with a Color Shader

    Hey everyone, I am developing a game with only two colors that change from level to level. I'm using a shader to do so which works fine even though it is pretty simple. However, on certain computers, the shader does not work and I have no idea why. I was wondering if you could help me with it...
  12. S

    SOLVED How to change the colour of an outline shader?

    I've followed Shaun Spalding's tutorial at youtube[dot]com/watch?v=zWrpHbc6fmc, which basically sets up a one-pixel outline for sprites using shaders. Currently, the outline is black. How do I change this? I've tried messing with gl_FragColor but it either messes up the transparency (no longer...
  13. B

    Create a background that flashes between two colors

    Hi everybody, I would like to create a short animation of the background that flashes between a color and its inverse. I would like to trigger this animation when the player takes a power up. Among the threads found in the forum I tried to change the background color with this code: lay_id =...
  14. chaslinux

    Discussion Documentation suggestion

    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...
  15. B

    Windows Sprite Color Issue

    Hi ! My problem seems to be in link with Windows 10 but I don't know, when I draw a sprite (re-imported most of the time), the real sprite color seems to be replaced by a strange blue, I removed everything in the room except an empty object with a color gradient sprite and it's doing the same...
  16. LilRony

    Windows ArrJiiBii - Short Platformer (Prototype?)

    I took a break from my current game to put this together. It was really fun to use techniques that I picked up over the course of making my other game, but couldn't use because of old code getting in the way. While it's not the most original concept, I really enjoy playing it, which is not...
  17. zendraw

    Shaders [SOLVED] Coloring parts of an image depending on value

    So each part of this image, that is colored in teal, has max green and blue, but red varies betwean 0-255, and depending on that it shuld load a color from an array that contains the colors, but for some reason it remains white, while the parts shuld be colored in red. here is the image here...
  18. G

    GMS 2 How can I change the letterbox color from black with scripts?

    How can I change the black bars on the outside of the screen to any color I want, on the fly?
  19. E

    Shader - replace one color.

    I'm having a difficult time understanding shaders. I've seen numerous video tutorials online and example code, but still feel lost. Here's what I know thus far: My_Shader.vsh is untouched. The following is written under My_Shader.fsh: varying vec2 v_vTexcoord; varying vec4 v_vColour; void...
  20. M

    Asset - Shaders Sin City Shader FX for GameMaker Studio 2

    Hello! I wanted to quick share this little shader I've put in the Marketplace This shader will replicate the Sin City trademark aesthetic, with the black & white ultra contrasted color, and then red! It's extremely easy to use, just pass the parameters in shader_sincity_start_extended() and...
Top